Forum OpenACS Q&A: Re: Running Apache and AOLServer Together

Collapse
Posted by Patrick Giagnocavo on
You are close to having it work right...

There are two ways to do this:

1. Have Apache use ProxyPass and ProxyPassReverse - in this case the url in the browser will show http://s2.com/index.html for example - you would have 2 virtual hosts, and only proxypass s2.com , while configuring Apache to handle the s1.com requests directly.

2. Use Redirect to redirect a user directly to http://s2.com:8080/index.html (this will show in the browser).

You absolutely need virtual hosting set up for it to work right.

If you cannot setup NameVirtualHost *:80 etc. , you will have to load the Rewrite module and then redirect or proxy based on that - which is unnecessary and more prone to failure than the simpler methods above.