Skip to content

Instantly share code, notes, and snippets.

@saboyutaka
Created June 23, 2017 08:07
Show Gist options
  • Save saboyutaka/4fe59a06d0b017e9dbd16d9cf404930f to your computer and use it in GitHub Desktop.
Save saboyutaka/4fe59a06d0b017e9dbd16d9cf404930f to your computer and use it in GitHub Desktop.
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