Created
June 23, 2017 08:07
-
-
Save saboyutaka/4fe59a06d0b017e9dbd16d9cf404930f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
server { | |
server_name isucon.com; | |
listen 80; | |
client_max_body_size 10m; | |
root /home/isucon/private_isu/webapp/public; | |
location ~ .*\.(html?|jpe?g|gif|png|css|js|ico|swf|inc) { | |
expires 1d; | |
# access_log off; | |
} | |
location / { | |
try_files $uri @app; | |
} | |
location @app { | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_pass http://localhost:8080; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment