On Wed, Mar 26, 2008 at 3:36 PM, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
> If he meant that the cms should be available via multiple
>  vhosts(apache2), but share the same application base then what?
>
>  Lets say:
>  mycompA.com --> myapplication on tomcat server via apache2
>  mycompB.com --> myapplication on tomcat server via apache2
>
>  using a vhost config some what like this:
>
>  <VirtualHost *:* >
>  ServerName mycompA.com
>  ServerAlias mycompB.com
>  ProxyPass / http://tomcatlocation+context/
>  ProxyPassReverse / http://tomcatlocation+context/
>  ProxyPassReverseCookiePath /context
>  /
>
>  <Proxy *>
>     Order deny,allow
>     Allow from all
>  </Proxy>
>  </VirtualHost>
>

The only problem with that is that you have to set up your proxy
Connector in Tomcat's server.xml with a hard-coded server name:

<Connector port="8081" ...
              proxyName="www.mycompany.com"
              proxyPort="80"/>

So, if you want to proxy to multiple hosts, you have to have multiple
connectors.  Yuck!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to