Project

General

Profile

Redmine using Ubuntu, Nginx, redmine.example. and /var/www/redmine

Added by praxct adm about 2 years ago

I'm late to Redmine party, so here it's go.

I install Redmine using Ubuntu, Nginx, in my subdomain (redmine.example.com) and location of the Redmine file /var/www/redmine. I followed the instruction from Redmine. [[https://www.redmine.org/projects/redmine/wiki/RedmineInstall]] [[https://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_a_sub-URI]]

Here my Nginx config file;

server {
    listen 80;
    listen [::]:80;

    root /var/www/redmine/html/public ;
    passenger_enabled on ;
    passenger_ruby /usr/bin/ruby ;
    proxy_redirect off;

    index index.html index.htm index.nginx-debian.html index.php;

    server_name redmine.example.com www.redmine.example.com ;

    location / {
        # First attempt to serve request as file, then
        # as directory, then fall back to displaying a 404.
        try_files $uri $uri/ =404;
    }
}

I can open my Redmine website, but everytime I click any link, like login (http://redmine.example/login), I got 404 Not Found. I guess it something about url redirect, but I don't know how to set it up.

Pretty please anyone, help. I really hope Redmine will shape the future project management apps, even tough I'm late to the wagon.


Replies (1)

RE: Redmine using Ubuntu, Nginx, redmine.example. and /var/www/redmine - Added by Bernhard Rohloff about 2 years ago

Hey it's never too late to jump on. Redmine is a plain rails application so there's nothing special about it. I'm not very familiar with passenger but they also have a page about setting up rails with nginx so maybe this works better: https://www.phusionpassenger.com/library/deploy/nginx/deploy/ruby/

Greetings,
Bernhard

    (1-1/1)