Answer the question
In order to leave comments, you need to log in
How to configure nginx+uwsgi+rails on subpath?
Available:
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;
}
}
Answer the question
In order to leave comments, you need to log in
The following config turned out to be workable:
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;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question