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 having a problem trying to do the following.

We have a domain name,, pointing to a server which hosts our brochure sites. I know I can redirect using apache mod_proxy to a different server but I need to be able to redirect a subdomain,, to a specific folder on our application server. This hasn't been a problem before but now there is two instances of the application on the app server as another company has bought to license to sell under their own name, so it must point to theirs. Here's code I used before to proxy to a different server

<VirtualHost *:80>
        ProxyRequests Off
        <Proxy *>
          Order deny,allow
          Allow from all
        <Location />
          Order allow,deny
          Allow from all
        ProxyPreserveHost on
        ProxyPass / http://XXX.XXX.XXX.XX/
        ProxyPassReverse / http://XXX.XXX.XXX.XX/


Do I need some type of intercepting apache file on the receiving server? Or is it just something simple like:

<VirtualHost *:80>
        Use VHostSetup /var/www/example_dash
share|improve this question
You're right, it is that simple. – Marcel Apr 11 '13 at 15:36
Okay, thank you. I'll try that now, I just wanted to make sure as it's my first time having to deal with outside business peeps! – boundless08 Apr 11 '13 at 15:39

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.