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 </Proxy> <Location /> Order allow,deny Allow from all </Location> ProxyPreserveHost on ProxyPass / http://XXX.XXX.XXX.XX/ ProxyPassReverse / http://XXX.XXX.XXX.XX/ </VirtualHost>
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 </VirtualHost>