# worker_processes 4; error_log logs/error.log; events { use epoll; worker_connections 65535; } worker_rlimit_nofile 102400; http { include mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent $request_body "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for" ' '"$upstream_addr" ' '"ups_resp_time:$upstream_response_time" ' '"request_time:$request_time"'; access_log logs/access.log main; include vhost/*.conf; server { listen 80; server_name localhost; location / { root html; index index.html index.htm; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } }