Created
October 27, 2015 18:26
-
-
Save t-min/cacaa03b2de7660eb7bd to your computer and use it in GitHub Desktop.
redmine-unicorn-nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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