I have Server A which hosts www.mysite.com
I want to create and host a site on Server B, but configure it to: www.mysite.com/theSiteAtServerB
TheSiteAtServerB is a completely different site from www.mysite.com and is on a completely different server but the client wants to use www.mysite.com and serve the content for TheSiteServerB under the same url.
Is this at all possible? DNS configuration? or through some Apache magic?
To clarify, I would like to achieve this without redirecting or rewriting urls.
http://www.mysite.com/ & http://www.mysite.com/siteAtServerB are separate sites >techinically with different IP addresses I wanted to know if its possible to modify DNS so that I can point www.mysite.com --------------> ServerA (currently) www.mysite.com/theSiteAtServerB --------------> ServerB
EDIT 2** To make sure I understand the flow, would it work like this:
1- Web Request comes into Server A
2- mod_rewrite processes the request against the matched rule
3- mod_proxy fetches content from the origin server and returns it back up to the response
In terms of security, would most of the locking down come from just nailing the regex >expression for mod_proxy? Based on this: http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#access, I'd assume that >I'll also need to set the proxy access? But if the site is a public site, what would I put >in the Proxy access block, would I set it to allow *