Created
January 6, 2015 03:16
-
-
Save onigra/bebd37d9ea9988ab4919 to your computer and use it in GitHub Desktop.
普通のnginx.conf
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
user nginx; | |
pid /var/run/nginx.pid; | |
worker_processes auto; | |
worker_rlimit_nofile 8192; | |
error_log /var/log/nginx/error.log warn; | |
events { | |
worker_connections 2048; | |
multi_accept on; | |
use epoll; | |
} | |
http { | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
server_tokens off; | |
sendfile on; | |
tcp_nopush on; | |
keepalive_timeout 65; | |
log_format ltsv "remote_addr:$remote_addr\t" | |
"remote_user:$remote_user\t" | |
"time_local:$time_local\t" | |
"request:$request\t" | |
"status:$status\t" | |
"body_bytes_sent:$body_bytes_sent\t" | |
"http_refer:$http_referer\t" | |
"http_user_agent:$http_user_agent"; | |
access_log /var/log/nginx/access.log ltsv; | |
server { | |
listen 80; | |
server_name www.example.com; | |
location / { | |
proxy_pass http://example; | |
} | |
} | |
upstream example { | |
server unix:/var/www/example/shared/tmp/sockets/unicorn.sock; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment