Category «Nginx»

Nginx with http/2 and usability problems

http/2 adoption in India is currently very poor

So Nginx released the mainline version 1.9.5 and then 1.9.6 with an experimental http/2 module. For those using spdy, the upgrade in itself should be simple, by simply replacing “spdy” with “http2” in the listen directive in the server configuration. The server will not start till this change is made. Sadly, what should have been …

Redirect www to non-www on Nginx

How to redirect the www.domain.com version of your website to domain.com version on Nginx? Here is how. You basically have to make two server blocks. The block with your normal configuration should be the version you want, the version you want to redirect should have a simple rewrite rule alone. For example, to redirect www.vidyut.net …