# http://tutspundit.com/how-to-install-nginx-php-fpm-mysql-php533-wordpress-part-2/ user www-data; worker_processes 4; worker_rlimit_nofile 32768; # debug, info, notice, warn, error, and crit (default is error) error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 4096; multi_accept on; accept_mutex_delay 50ms; } http { include /etc/nginx/mime.types; # http://wiki.nginx.org/NginxHttpSslModule # http://wiki.nginx.org/NginxHttpMainModule # log_format combined '$remote_addr - $remote_user [$time_local] ' # '"$request" $status $body_bytes_sent ' # '"$http_referer" "$http_user_agent"'; log_format vhost_combined '$server_name $remote_addr - $remote_user [$time_local] ' '"$request" $status $bytes_sent ' '"$http_referer" "$http_user_agent"'; log_format vhost_combined_ssl '$server_name $remote_addr - $remote_user [$time_local] ' '"$request" $status $bytes_sent ' '"$http_referer" "$http_user_agent" $ssl_protocol $ssl_cipher'; log_format vhost_combined_debugging '$server_name $remote_addr - $remote_user [$time_local] ' '"(request = \'$request\')" $status $bytes_sent ' '(request_filename = \'$request_filename\') $request_uri (args = \'$args\') ' '"$http_referer" "$http_user_agent"'; # http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#logformat # LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %{SSL_PROTOCOL}x %{SSL_CIPHER}x" vhost-ssl # LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined # LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost # LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined # Note: Allowing all logs to combine as we'll end up splitting them later. access_log /var/log/nginx/access.log vhost_combined; # Logging SSL connections and their types (useful for debugging) access_log /var/log/nginx/ssl.access.log vhost_combined_ssl; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; tcp_nodelay on; expires max; server_tokens off; gzip on; gzip_static on; gzip_proxied any; gzip_types text/plain text/css application/x-javascript text/xml text/javascript application/xml; gzip_vary on; gzip_disable "MSIE [1-6]\.(?!.*SV1)"; include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; }