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'm confused as to use virtual host or not. points to an external server IP address. How can I configure apache on the external server to resolve requests coming from to folder xyz (/var/www/html/xyz) and not the default virtual host?

share|improve this question
What's your current configuration? A new virtual host will only be helpful if you're looking to serve content for a different domain, not a different path. What you're trying for should certainly be possible, but you need to clarify how you have it configured now that the content you want it to serve is not being served. – Shane Madden May 24 '12 at 22:09
This is a temporary solution for what I need. The server that hosts does not want to host my web application, thus I asked him to point to another (external) server. I'm positive that is not being served. So my question is how do I point requests coming from to where it should go (/var/html/www/xyz not the default folder). – Taj May 25 '12 at 14:25
So there's a reverse proxy involved, too? You really need to provide information on the configuration, we can't just guess. Are they proxying the request to you unchanged, or is the path stripped? What's your DocumentRoot set to, and what content needs to be served for what exact request? And are both xyzs in xyz/xyz the exact same string, or are they different? – Shane Madden May 25 '12 at 15:13

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.