Webmasters Stack Exchange is a question and answer site for pro webmasters. 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

My PC has a configuration to work as a server. It has quad core processor with 8GB RAM. So I made it a server. Now i want to know, how can I link the domain names to various folders in my WAMP. At present, when I am calling my IP address e.g. 123.234.345.456, I get index file from C:/wamp/www/. But I want to forward e.g. www.example.com to folder C:/wamp/www/example and test.example.com to folder C:/wamp/www/test Does anyone have idea how to do this? And what should I do in my domain provider's controls, so that they can fetch data from my server, without changing URL.

share|improve this question
You will have to edit your Apache config files -- you will need to use virtual hosts approach (which is not used by WAMP or alike by default). More details: httpd.apache.org/docs/current/vhosts ; httpd.apache.org/docs/current/mod/core.html#virtualhost – LazyOne May 3 '12 at 12:21
That's regarding Apache. But you still will need to configure DNS so those domain names point to your server (unless all requests are done locally -- then you can use hosts file for that). – LazyOne May 3 '12 at 12:24
possible duplicate of What things required to host a website at home – paulmorriss May 3 '12 at 12:41
@LazyOne: How can I get the DNS? I just have my IP address, which shows result from a folder in my Windows XP Computer – Thompson May 3 '12 at 12:46
The answer in the link provided by @paulmorriss will give enough info – LazyOne May 3 '12 at 12:56

Your Answer


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

Browse other questions tagged or ask your own question.