Skip to content

Instantly share code, notes, and snippets.

@AbhishekGhosh
Created March 7, 2014 08:01
Show Gist options
  • Save AbhishekGhosh/9407308 to your computer and use it in GitHub Desktop.
Save AbhishekGhosh/9407308 to your computer and use it in GitHub Desktop.
Optimize nginx
worker_processes 2
worker_connections 1024
server_tokens off;
# Timeout Settings
client_body_timeout 10;
client_header_timeout 10;
keepalive_timeout 5 5;
send_timeout 10;
# Gzip Settings - For improving (SEO) page speed
gzip on;
gzip_static on;
gzip_comp_level 6;
gzip_disable "msie6";
gzip_vary on;
gzip_types text/plain text/css text/xml text/javascript application/json application/x-javascript application/xml application/xml+rss;
gzip_proxied expired no-cache no-store private auth;
gzip_buffers 16 8k;
gzip_http_version 1.1;
@AbhishekGhosh
Copy link
Author

This is gist is created by Abhishek Ghosh for the blog article Installing WordPress With NGINX on Debian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment