top of page

Local Host

WHAT IS IT ?

  •  localhost is a hostname that means this computer

  • It is used to access the network services that are running on the host.

  • Used to run a network service on a host without requiring a physical network interface.

  • The website files are to be stored in the directory we setup as home directory in IIS configuration.

  • In order to activate localhost server on Windows PC, navigate to > Control Panel -> Programs and Features -> Turn Windows features on or off.

  • Then search for Internet Information Services and check its checkbox.

Enable Internet Information Services 

  • IIS acts as a server for a local computer.

  • A locally installed website may be accessed from a web browser by the URL http://localhost to display its home page.

  • To open the local site we have to use http://localhost/ or http://127.0.0.1/ in web browser to open the site.

or  127.0.0.1

wwwroot

  • wwwroot folder is for to Deploy in Server i.e IIS.

  • wwwroot is a Virtual Directory of IIS server.

  • Place all the files of the website ( developed ) in one directory. For the first time users it is better to store in c:\inetpub\wwwroot\ as this is the default home directory for IIS.

  • wwwroot may contain many web-site so that are in the separate folder and it would be acces by specific path. 

  • like localhost:8080/mywebsite, where "birendra" is a folder in which files are there for my site.

  • Here birendra is a folder in which files are there for my site.

  • The IIS server Runs the website deployed on the directory.

  • A index.html file has been kept in birendra folder.

bottom of page