Reverse Proxy to a subdomain using IP
Hey everyone,
I've got a RHEL 5.0 server hosting a number of websites. We want to move our staging sites off of our live servers and do our development on a Mac OS X Server 10.5 in our office. However, we want to set up a reverse proxy on one of our servers (the RHEL 5.0 mentioned) to handle password protection on our proxied development sites and prevent unwanted traffic from reaching our office network. So we've got ourselves a dedicated IP for our office and can connect to our office server directly using its IP.
My question is, how can I specify in the proxy settings on our RHEL server which virtualhost on our office server I want to request? My guesses are either with the ProxyPreserveHost On, ServerName dev1.office, or <Proxy website_name.office_server> instead of <Proxy *>
but none of these seemed to have worked, or at least the combination that I used didn't work.
In case this isn't clear, consider this example:
Our office server has for simplicity, 2 sites "dev1.office" and "dev2.office" set up as virtual hosts.
On our remote server, I want dev1.ourcompany.com to be a reverse proxy for dev1.office and dev2.ourcompany.com to be a reverse proxy for dev2.office. However, dev1.office and dev2.office are just local names on our server, there is no DNS associated with it, we have to be able to request these virtual hosts through its IP. (If this is possible)
Thank you very much for any help with this!
Nathan
Last edited by natern; 05-14-2010 at 03:46 PM.
|