Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wish to know how can I host some domain names on my own machine.

I've installed wamp, but I don't wana use localhost/folder_name to access the project's I'm working on. I know that is possible to type into my browser, but i don't know how or what to search on google. All I've tried didn't give me anything useful

share|improve this question
up vote 2 down vote accepted

The hosts file controls access to this. In Windows XP, it's C:\Windows\System32\Drivers\Etc\Hosts with no file extension. You'll need to use notepad to edit the file and add a line reading

If there is already a line starting then you should add to the end of it localhost

Keep in mind that while this line is there you will never be able to access on the real server.

share|improve this answer

You can modify your etc/hosts file and add reference to pointing to

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.