Forum OpenACS Q&A: Re: Apache as reverse proxy

Posted by David Walker on
I actually went to far as to recompile Apache to support no modules except what I needed and I commented out all the http commands I am not using.

How can I redirect all other subdomains like and to Set up the <VirtualHost _default_:*> section to be the redirector. I'm not sure what exact commands to use but if you can't do it in Apache you can always have the default site go to an aolserver page that does the redirection.

If you want to remain subsite-aware you'll need the target of your proxypass to be distinct for each subsite. Apache sends the Host header you specify in the proxypass line instead of the user-supplied host header.