server {
listen 81;
location / {
uwsgi_pass unix:///opt/redmine-2.5.1/tmp/uwsgi.sock;
include uwsgi_params;
uwsgi_modifier1 7;
}
}
server {
listen 80;
location /redmine {
uwsgi_pass unix:///opt/redmine-2.5.1/tmp/uwsgi.sock;
include uwsgi_params;
uwsgi_param SCRIPT_NAME "/redmine";
uwsgi_modifier1 7;
}
}
location ~ /redmine(?P<path>/.*) {
uwsgi_pass unix:///opt/redmine-2.5.1/tmp/uwsgi.sock;
include uwsgi_params;
uwsgi_param SCRIPT_NAME /redmine;
uwsgi_param PATH_INFO $path;
uwsgi_modifier1 7;
}