Category Archive: Nginx

Mar 20

Upgrade or install latest version of Nginx on Ubuntu

nginx -v

Installing Nginx on Ubuntu is really simple, sudo apt-get install nginx command will do the trick for you. But it does not install the latest stable, instead it will install some latest version of Nginx from Ubuntu repository. Nginx maintains 2 versions called Mainline and stable. Latest version can be found from here . Mainline …

Continue reading »

Mar 19

Solved – nginx could not build the server_names_hash

In Nginx environment, you may be experienced following error message saying you should have to increase server_names_hash_bucket_size.     This error is due to using large server_name which does not fit in the hash bucket. It is recommended to use small values as where as possible, because it can directly impact the web server performance …

Continue reading »

Mar 17

Redirect http to https nginx

This is most effective method of redirecting web traffic to SSL in Nginx web server. According to Nginx documentation, they do not recommend to use ‘rewrite’ directive, instead advised to use ‘return’ directive. The guidelines regarding Nginx directive can be found at official Nginx document . So let’s look at how to redirect http to …

Continue reading »

Older posts «

Fetch more items