upstream redmine_default { # the socket a fastcgi process is bound to server unix:/var/run/redmine/sockets/default/fcgi.socket; } server { location /redmine { alias /usr/share/redmine/public; try_files $uri @fcgi; } location @fcgi { include /etc/nginx/fastcgi_params; fastcgi_param SCRIPT_FILENAME /usr/share/redmine/public/$fastcgi_script_name; fastcgi_pass redmine_default; fastcgi_index index.html; } }