Customize localhost or 127.0.01 with your own name


To customizing localhost with your own domain name you need to :
Go to C:\Windows\System32\Drivers\etc\hosts.





Copy hosts file and paste anywhere outside windows folder (better outside folder where is windows installed) and then open hosts file with notepad and you will find 127.0.0.1 localhost like this :



And then fill 127.0.0.1 with your own name, for example :



After modified it, copy it and paste back into hosts file(C:\Windows\System32\Drivers\etc\hosts), so you will replace it with modified file. Turn on or restart your apache server and then open your browser then type according on the name of your apache server content and see the result :



You can custom your domain localhost with another name with the same way.

Comments

Buy me a coffeeBuy me a coffee