How to Configure Nginx Server from scratch on Ubuntu


Nginx is a opensource High Performance HTTP web server and Reverse proxy server which is installed between the network and the application to offload concurrency processing, URL switching, HTTP load-balancing, SSL termination, caching, and security policies.

Step 1: Install Nginx on Ubuntu

# updating apt package
sudo apt-get update

#install nginx
sudo apt-get install nginx

#start nginx
sudo service nginx start

#update the system init script 
#which start/stop service as daemons
sudo update-rc.d nginx defaults

If all goes well , Try http://your.server.ip/ you will see a page like shown below

Nginx welcome page

Nginx welcome page

Continue reading