40 Set Domain Name For Localhost In This Year

Let s break the tutorial into 3 different parts.
Set domain name for localhost. Click on local your server name and move to sites add website. If you want to access the website using the domain name you created then use the following procedure. Now you are ready to set domain name manually from your windows server iis.
To change your localhost to domain name all you need to do is run your wamp server and go to localhost page. Point the custom domain to 127 0 0 1. Set a domain name to iis.
You can follow these steps to add a domain. Navigate to control panel system security administrative tools and open internet information server iis manager. Preparing the website to launch on your browser.
If your custom domain name matches with an existing website your browser will open the localhost instead of the website while your local server is running. Alternatively search for iis manger in start window. Each line must begin with the address 127 0 0 1 this is the localhost address after the ip address type the name of the domain you wish to redirect to this address.
This is the host we set up in the etc hosts file the port 80 tells it to serve on the port 80 which is the normal http port. Change localhost to domain name in window ad your favorite domain name method two. Just like test example or invalid localhost is a top level domain reserved for documentation and testing purposes.
Point the custom domain to 127 0 0 1 localhost add virtual hosts in apache server httpd vhosts conf file. Left click on the wamp icon in the notification area and click on www directory. Open iis click win r enter inetmgr in the dialog and click ok.