Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user nginx;
- worker_processes 4;
- error_log /var/log/nginx/error.log warn;
- pid /var/run/nginx.pid;
- events {
- worker_connections 1024;
- # added from http://calendar.perfplanet.com/2012/using-nginx-php-fpmapc-and-varnish-to-make-wordpress-websites-fly/ - 28th Dec 2012
- multi_accept on;
- use epoll;
- }
- http {
- # Let NGINX get the real client IP for its access logs - added from http://calendar.perfplanet.com/2012/using-nginx-php-fpmapc-and-varnish-to-make-wordpress-websites-fly/ - 28th Dec 2012
- set_real_ip_from 127.0.0.1;
- real_ip_header X-Forwarded-For;
- 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;
- # added from http://calendar.perfplanet.com/2012/using-nginx-php-fpmapc-and-varnish-to-make-wordpress-websites-fly/ - 28th Dec 2012
- tcp_nopush on;
- client_max_body_size 15m;
- client_body_timeout 60;
- client_header_timeout 60;
- client_body_buffer_size 128K;
- client_header_buffer_size 1k;
- large_client_header_buffers 4 8k;
- send_timeout 60;
- reset_timedout_connection on;
- types_hash_max_size 2048;
- server_tokens off;
- gzip on;
- gzip_static on;
- gzip_min_length 512;
- keepalive_timeout 20;
- gzip_http_version 1.1;
- gzip_vary on;
- gzip_comp_level 6;
- gzip_proxied any;
- gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js;
- gzip_buffers 16 8k;
- gzip_disable "MSIE [1-6]\.(?!.*SV1)";
- include /etc/nginx/conf.d/*.conf;
- port_in_redirect off;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement