Nginx Web Server

AiroServer's Blog

Previously, we’ve talked about what a web server is and what different Linux web servers are. We also explained about Apache which is the most commonly used Linux web server in the world. In this post, we are going to talk about Nginx which is another Linux web server.

What is Nginx?

Nginx is a very successful open-source web server that is also used as a reverse proxy, load balancer, and HTTP cache. From the start, it worked on high performance and optimized RAM usage. This web server is compatible with lots of operating systems like OS X, Linux, HP-UX, Solaris and etc.

Nginx best Features

Here are some of it’s best features:

  • It can support and manage more than 10000 simultaneous connections with low RAM usage.
  • Load Balancing
  • Fault tolerance
  • Supports SPDY protocol
  • The ability to compress and extract gzip files
  • Supports STARTTL
  • and etc…

There are also some cons about this web server which are:

  • It doesn’t offer us an easy GUI to use. But it has a built-in dashboard that allows you to control things by it. 
  • It doesn’t support .htaccess file.

Nginx Installation on WHM

This web server has a very easy installation. All you have to do is to connect to your server using an SSH connection and then copy and paste these commands in turn:

cd /usr/local/src
tar xf nginxadmin.tar 
cd publicnginx
./nginxinstaller install

After the installation you can go to the Plugins section of WHM, to see the Nginx plugin that you have just installed.

So from now on, the Nginx will replace Apache in your server and will be used by all websites.

Uninstall Nginx from WHM

You can use those simple commands above for installation but replace “Install” with “uninstall” in the last line.

cd /usr/local/src
tar xf nginxadmin.tar
cd publicnginx
./nginxinstaller uninstall

We hope that you enjoyed this post. If you did, you can check our blog for more!

Find More Articles...

Whats New?