40 Localhost Domain Name Service New

Localhost is not just the name for the virtual server but also its domain name.
Localhost domain name service. Preparing the website to launch on your browser. Setelah itu simpan atau ctrl s. To change your localhost to domain name all you need to do is run your wamp server and go to localhost page.
You may only enter 1 name per line. Let s say you have two domains fake1 local and fake2 local that are hosted on your local machine for development using the hosts file to point them to 127 0 0 1. This will create a website on the local iis server.
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. 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. Setting up a custom domain name instead of a localhost will help you when testing of many things such as redirecting a non www to a www website or vice versa or redirecting from http to https before publishing a website to the production hosting environment.
Conversely this means that the term is only used in the context of networks. Change localhost to domain name in window ad your favorite domain name method two. Left click on the wamp icon in the notification area and click on www directory.
Now we want to use http. 3 add lines containing the domain name s and ip address to redirect to. See the section in the red box in the image above.
When you try to access the domain a loopback is triggered. Local hostname and the domain name of your server defined in text configuration file located in etc directory. But the changes are temporary if you use these commands.