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
21 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\etcYou 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 nameRunning up a local DNS is slightly more challenging and worthy of a separate question.