Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm confused as to use virtual host or not. domain.com/xyz/xyz points to an external server IP address. How can I configure apache on the external server to resolve requests coming from domain.com/xyz/xyz 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 domain.com/xyz does not want to host my web application, thus I asked him to point domain.com/xyz/xyz to another (external) server. I'm positive that domain.com/xyz/xyz is not being served. So my question is how do I point requests coming from domain.com/xyz/xyz 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
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.