Posts Tagged nginx

Install Nginx webserver on Ubuntu Hardy

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:

  1. Handling of static files, index files, and autoindexing; open file descriptor cache;
  2. Accelerated reverse proxying without caching; simple load balancing and fault tolerance;
  3. Accelerated support without caching of remote FastCGI servers; simple load balancing and fault tolerance;
  4. 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.
  5. 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

http://localhost/

Testing nginx web server

Testing nginx web server

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

Leave a Comment