# This file is based on /usr/local/nginx/conf/nginx.conf.default. user root; worker_processes auto; error_log stderr error; events { # This needed to be increased because the nginx error log said so. # http://nginx.org/en/docs/ngx_core_module.html#worker_connections worker_connections 65535; multi_accept on; } http { default_type application/octet-stream; client_body_temp_path /tmp; access_log off; server_tokens off; sendfile on; tcp_nopush on; keepalive_timeout 65; keepalive_disable none; keepalive_requests 1000; server { # For information on deferred, see: # http://nginx.org/en/docs/http/ngx_http_core_module.html#listen # http://www.techrepublic.com/article/take-advantage-of-tcp-ip-options-to-optimize-data-transmission/ # The backlog argument to listen() is set to match net.ipv4.tcp_max_syn_backlog and net.core.somaxconn listen 8080 default_server deferred backlog=65535 reuseport; server_name localhost; location / { fastcgi_pass unix:/var/tmp/cppcms.sock; fastcgi_keep_conn on; fastcgi_split_path_info ^()((?:/.*))?$; fastcgi_param PATH_INFO $fastcgi_path_info; } } }