Nginx (pronounced “engine x”) is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3  proxy server Written by Igor Sysoev in 2005, Nginx now hosts between 1% and 4% of all domains worldwide. Although still in beta, Nginx is known for its stability, rich feature set, simple configuration, and low resource consumption.

Currently Ubuntu Hardy will install Nginx version nginx-0.7.65 using aptitude.

Install Nginx webserver in Ubuntu Hardy

sudo aptitude install nginx

This will install all the required packages for nginx.

Start Nginx webserver

By default nginx will not start automatically so you need to start using the following command

sudo /etc/init.d/nginx start

Testing nginx webserver

You need to point your web browser and enter your server ip address

http://serveripaddress

You should see similar to the following screen.

Start and Stop nginx webserver

If you want to start,stop and restart using the following commands

sudo /etc/init.d/nginx start

sudo /etc/init.d/nginx stop

sudo /etc/init.d/nginx restart

This is just beginning of nginx webserver articles we are working on to provide PHP support,configuring virtual hosts and more.