Answer the question
In order to leave comments, you need to log in
Nginx + apache + redmine how to setup location?
Installed nginx frontend + apache backend
Installed redmine with passanger module for apache
location / {
proxy_pass http://127.0.0.1:8080;
include /etc/nginx/proxy_params;
}
location ~* \.(jpg|jpeg|gif|png|js)$ {
root /usr/share/redmine/public/;
}
Answer the question
In order to leave comments, you need to log in
Here is my nginx config for redmine. The redmine itself is spinning in the docker, but this does not change the essence. Apache is not needed.
server {
...
root /opt/srv/redmine/public;
location / {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 3600;
proxy_connect_timeout 3600;
proxy_pass http://127.0.0.1:3000;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question