Server Bug Fix: Redmine Base URI /redmine with nginx

Original Source Link

I want to do exactly that but with nginx server
I wrote below settings but login pages like /redmine/login redirects to /login

Please assist.

location /redmine {
          proxy_pass        http://localhost:3000/;
          proxy_redirect    default;
          proxy_set_header  Host               $host;
          proxy_set_header  X-Real-IP          $remote_addr;
          proxy_set_header  X-Forwarded-For  $proxy_add_x_forwarded_for;
          proxy_set_header  X-Forwarded-Proto  https;
          proxy_cache       dhis;
          fastcgi_read_timeout 6000;
}

What should I add so any link in the returned page to point start with /redmine prefix.

I’m no expert, but this page suggests adding

alias   <PATH_TO>/redmine/public;
try_files $uri/index.html $uri.html $uri @app;

to your location block. Does that help any?

Tagged : / /

Leave a Reply

Your email address will not be published. Required fields are marked *