Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For anyone who is interested in nginx tuning, please follow the H5BP nginx repo: https://github.com/h5bp/server-configs-nginx, which is very well documented already and still being maintained.



Thanks, this is useful—the comments especially so.

It's a shame there isn't one for reverse (HTTP) proxies: fine tuning proxy settings: proxy_buffers, buffering, etc, and other related settings when dealing with a back end application.


There is a great guide about using varnish with nginx to make WordPress fly on perfplanet blog. I recently blogged about this. http://serenecode.org/2013/11/nginx-php-fpm-5-5-zend-opcache...


This post was worth it just for me to discover that this exists! Thank you!


I have to agree. If only I had known this about this repo back when I when I had a VPS. The comments for each option are explained well. The Nginx help docs are helpful but sometimes its nice to see a more detailed approach and though not every option will be right for "your" circumstances. It is nice to see.


Not sure about the H5BP config setting the keep-alive timeout to 20s (but would need to test to look at what resource consumption is like compared to say 5s)

The OP recommends turning off gzip in MSIE6 when it was only the very first versions of IE6 that had a problem with gzip and it was fixed in later versions.


>> The OP recommends turning off gzip in MSIE6 when it was only the very first versions of IE6 that had a problem with gzip and it was fixed in later versions.

And IE6 users are known far and wide for how fervently they upgrade. ;-)


No configuration is perfect in all scenarios. The good thing in using github is you can submit pull request or report issue when needed :)

[1] Why `gzip_disable` is added: https://github.com/h5bp/server-configs/pull/92

[2] Why `gzip_disable` is removed: https://github.com/h5bp/server-configs/issues/145


additionally, better for security: https://gist.github.com/plentz/6737338


Thank you! Do you know of any equivalent for Apache?


Interesting stuff. Thanks for posting it


Could line 21 of nginx.conf actually be any more arrogant or presumptuous?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: