Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 have a domain pointing to Linux AWS.
I also have which i need to point to /htdocs/c5 of on Windows Server running XAMPP.

My Findings
Used A record of point to
Changed the httpd.conf on Windows Server to

<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/c5"

If i do so all my requests are forwarded to /htdocs/c5.
But i need only if request from comes it need to be forwarded to /htdoc/c5 & if i access it should display /htdocs

URL masking: i mean should be displayed in addressbar instead of

share|improve this question
up vote 1 down vote accepted

You need to make a second virtual host, not replace the original. Make one for and one for

share|improve this answer
Thanks MDMarra. It worked :) – SmartMohi Mar 4 '12 at 16:26

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.