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.
Basic HTTP features:
- Handling of static files, index files, and autoindexing; open file descriptor cache;
- Accelerated reverse proxying without caching; simple load balancing and fault tolerance;
- Accelerated support without caching of remote FastCGI servers; simple load balancing and fault tolerance;
- Modular architecture. Filters include gzipping, byte ranges, chunked responses, XSLT, and SSI. Multiple SSI inclusions within a single page can be processed in parallel if they are handled by FastCGI or proxied servers.
- SSL and TLS SNI support.
How to install Nginx
sudo aptitude install nginx
How to start Nginx
sudo /etc/init.d/nginx start
Testing Nginx
Start and Stop nginx webserver
Following are the commands to start, stop and restart nginx
Start
sudo /etc/init.d/nginx start
Stop
sudo /etc/init.d/nginx stop
Restart
sudo /etc/init.d/nginx restart
