[opencms-dev] Multi Site on Cluster

Tony Thul TTHUL at regina.ca
Fri Aug 23 22:27:03 CEST 2013


Hi List!
 
I am having an issue with a multi site configuration in a clustered environment. When I shut one server down, it works fine. But when they are both running, I get a redirect loop when the workplace window is trying to open.
 
This is the config:
 
        <sites>
            <workplace-server>http://test.site1.ca</workplace-server>
            <default-uri>/sites/site1.ca/</default-uri>
            <shared-folder>/shared/</shared-folder>
            <site server="http://site1.ca" uri="/sites/site1.ca/"/>
            <site server=http://site2.ca uri="/sites/site2.ca/"/>
        </sites>
 
 
 
 
 
<VirtualHost *:80>
 
 # host name
 ServerName site1.ca
 
 # logs
 ErrorLog F:/Apache/logs/test.site1.ca.error.log
 CustomLog F:/Apache/logs/test.site1.ca.access.log common
 

 # proxy pass
 ProxyPreserveHost On
 <Proxy http://localhost:8080*>
  Allow from all
 </Proxy>
 RedirectPermanent /opencms/  http://site1.ca/ 
 ProxyPass        /opencms/   http://localhost:8080/opencms/ 
 ProxyPassReverse /opencms/   http://localhost:8080/opencms/ 
 ProxyPass        /           http://localhost:8080/opencms/opencms/ 
 ProxyPassReverse /           http://localhost:8080/opencms/opencms/ 
 
</VirtualHost>
 

# 
# test.site2.ca
#
<VirtualHost *:80>
 
 # host name
 ServerName test.site2.ca
 
 # logs
 ErrorLog F:/Apache/logs/test.site2.ca.error.log
 CustomLog F:/Apache/logs/test.site2.ca.access.log common
 
 
 
 # proxy pass
 ProxyPreserveHost On
 <Proxy http://localhost:8181*>
  Allow from all
 </Proxy>
 RedirectPermanent /opencms/  http://test.site2.ca/ 
 ProxyPass        /opencms/   http://localhost:8181/opencms/ 
 ProxyPassReverse /opencms/   http://localhost:8181/opencms/ 
 ProxyPass        /           http://localhost:8181/opencms/opencms/ 
 ProxyPassReverse /           http://localhost:8181/opencms/opencms/ 
 
</VirtualHost>
 
 
 
Any ideas?
 
Thanks!
Tony


DISCLAIMER: The information transmitted is intended only for the addressee and may contain confidential, proprietary and/or privileged material. Any unauthorized review, distribution or other use of or the taking of any action in reliance upon this information is prohibited. If you received this in error, please contact the sender and delete or destroy this message and any copies. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20130823/47775faf/attachment.htm>


More information about the opencms-dev mailing list