Skip to content

Instantly share code, notes, and snippets.

@t-min
Created October 27, 2015 18:26
Show Gist options
  • Save t-min/cacaa03b2de7660eb7bd to your computer and use it in GitHub Desktop.
Save t-min/cacaa03b2de7660eb7bd to your computer and use it in GitHub Desktop.
redmine-unicorn-nginx
upstream unicorn {
server unix:/tmp/unicorn.redmine.sock fail_timeout=0;
}
server {
listen 80;
server_name localhost;
# $document_root にパスをセット
root /var/www;
location / {
root /var/www;
index index.php index.html index.htm;
}
error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
#---------------------------------------
# redmine
#---------------------------------------
location /redmine {
proxy_pass http://127.0.0.1:8081;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment