80 Change Localhost To Domain Name Locally Update

When called with one argument or with the file option the commands set the host name or the nis yp domain name.
Change localhost to domain name locally. Run the server and test our work. 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. Uncomment the line so that it can includes the virtual hosts file.
Step 1 configuration of local wamp server. Point the custom domain to 127 0 0 1 localhost add virtual hosts in apache server httpd vhosts conf file. Let s break the tutorial into 3 different parts.
After having made this change you can access your local website with the google address. Change localhost to domain name in window ad your favorite domain name method two. How to change localhost in xampp to domain name is a free online lea.
Now make the change in the hosts file as we did in 6 in case1. Step 1 go to c wamp bin apache apache2 2 17 conf open httpd conf file and change include conf extra httpd vhosts conf to include conf extra httpd vhosts conf i e. Now you need to configure the home page for your custom domain.
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. Localhost website with custom domain.
Below is the step by step guide to change localhost to domain name for xampp in a windows computing environment. For this example i try describe configuration of local dynamic domains lc with wamp server. Hostname uses the sethostname 2 function while all of the three domainname ypdomainname and nisdomainname use setdomainname 2.