Install and Configure Nginx on UBUNTU 14.04

Nginx is an Web Server that is better than apache on various parameters . Ngix can be used as web server or reverse proxy server. Today at this time Nginx is very much popular in web server  and used for hosting very large and high traffic web applications.

Now install Nginx :-

  • Update the local package index using
  • Now install Nginx using this command
  • So, the above command installed the nginx at your server. Now to check this open your browser and put
    http://localhost/ or if you installed on your vps than you can access it using your public IP. To find public IP address you can use this command

    you will see the default welcome page of the Nginx

  • You can see nginx config
    /etc/nginx/sites-available/default
  •  Your Nginx root directory location is /usr/share/nginx/html.

Leave a Reply

Your email address will not be published. Required fields are marked *