80 Setup Localhost Domain Name New

3 add lines containing the domain name s and ip address to redirect to.
Setup localhost domain name. 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. You may only enter 1 name per line. Benefits of using a domain name is that you don t have to remember your ip address.
See the section in the red box in the image above. This technique is a little bit easier than method one. Open iis click win r enter inetmgr in the dialog and click ok.
Get your domain name you want to use for your 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. Preparing the website to launch on your browser.
How to change localhost in xampp to domain name is a free online lea. 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. If you want to access the website using the domain name you created then use the following procedure.
Change localhost to domain name in window ad your favorite domain name method two. 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. Alternatively search for iis manger in start window.
If you do not want to use a real domain name but wants to use domain name only in your pc we will redirect the desired domain to 127 0 0 1. In ubuntu the local server by default is referred by the name localhost. Now you need to configure the home page for your custom domain.