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

I'm having a problem trying to do the following.

We have a domain name, example.com, 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, dash.example.com, 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>
        ServerName dash.example.com
        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 dash.example.com /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.