# Add this file to your /etc/nginx/sites-available directory, renaming it to # the domain of your website. # Change the: server_name, port # Credit to http://mattkirman.com/2011/06/01/how-to-speed-up-wordpress-with-nginx/. server { listen 80; server_name www.yourdomain.com; # change this # global gzip on gzip on; gzip_min_length 10240; gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml; gzip_disable "MSIE [1-6]\."; add_header Cache-Control public; location / { proxy_pass http://127.0.0.1:{PORT}; # change this proxy_buffering on; proxy_buffers 12 12k; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; } }