Last active
August 29, 2015 14:06
-
-
Save yfuruyama/9c4d554b552d8a4653fb 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
| # For more information on configuration, see: | |
| # * Official English Documentation: http://nginx.org/en/docs/ | |
| # * Official Russian Documentation: http://nginx.org/ru/docs/ | |
| user nobody nobody; | |
| worker_processes 1; | |
| error_log /var/log/nginx/error.log; | |
| #error_log /var/log/nginx/error.log notice; | |
| #error_log /var/log/nginx/error.log info; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 10000; | |
| } | |
| http { | |
| include /etc/nginx/mime.types; | |
| default_type application/octet-stream; | |
| log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
| '$status $body_bytes_sent "$http_referer" ' | |
| '"$http_user_agent" "$http_x_forwarded_for"'; | |
| access_log /var/log/nginx/access.log main; | |
| sendfile on; | |
| #tcp_nopush on; | |
| #keepalive_timeout 0; | |
| keepalive_timeout 65; | |
| #gzip on; | |
| # Load config files from the /etc/nginx/conf.d directory | |
| # The default server is in conf.d/default.conf | |
| include /etc/nginx/conf.d/*.conf; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| upstream isucon-app { | |
| server unix:/tmp/isucon-app.sock; | |
| } | |
| server { | |
| listen 5000; | |
| location / { | |
| proxy_pass http://isucon-app; | |
| } | |
| location ~ ^/(js|css|images)/ { | |
| open_file_cache max=128; | |
| root /home/game/.ghq/github.com/tagomoris/isucon2/webapp/staticfiles; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment