80 Get Domain Name Of Localhost In This Year

Trying to open the address 127 0 0 1 in an ipv4 connection will trigger a loopback referring you back to your own web server.
Get domain name of localhost. Enter the password for the root ssl certificate when prompted. This technique is a little bit easier than method one. You can see all the files we have created.
Now you need to configure the home page for your custom domain. In ubuntu the local server by default is referred by the name localhost. However you can also create a custom domain name for you local server instead of using localhost this article explains the process to create your own custom domain name instead of using localhost here hackdx md is created as our domain which can be taken as per need.
To change your localhost to domain name all you need to do is run your wamp server and go to localhost page. Change localhost to domain name in window ad your favorite domain name method two. 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. 3 add lines containing the domain name s and ip address to redirect to. Client 1 local crt and client 1 local key are the files you will need to add to your web server.
The addresses range from 127 0 0 0 to 127 255 255 255 but it s normally 127 0 0 1. 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.
If you want to access the website using the domain name you created then use the following procedure. 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.