How to setup a basic Apache / Nginx web server and some basic functionality

A web server is generally required to host any content that you want it to be accessible from the web. It also responds back to request made from any client (web browsers like chrome, firefox , Internet Explorer) for the content hosted on web server . Apache and Nginx are two very common web server currently used.