How to change ip address into a name customized

I can access my local WAMP with 192.168.1. However, I wish to make it prettier.

Can I somehow make Apache recognize 192.168.1 as text similiar to a website (i.e. mysite.com or just mysite)? How can I adjust it in Apache? I tried way to do.in host file, but I found that the browser always bring me to the search once I type my ip s new.name.

I heard about using virtual host but have no idea how to setup correctly. Help will be really appreciated! Thank You

2

1 Answer

To do this, you can either change the HOSTS file on each PC or you need a local DNS service running inside your local network.

If you only have a couple of PC's to deal with, changing the HOSTS file is easy. It is located at:

C:\Windows\System32\drivers\etc

You can simply add an entry like this:

192.168.1.x mywamp.local # or just mywamp, the dotty bit is optional, it is just a name

Running up a local DNS is slightly more challenging and worthy of a separate question.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like