I'll send my config once I get near my server later today:) It is actually working without the connector setup in tomcat.

And I think you can even get it to work with connection pooling using the new proxy mod.

regards Nino

James Carman wrote:
On Thu, Mar 27, 2008 at 3:49 AM, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
 >
 > 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!
 >
 >
 Im already doing this, but I do not have to setup connectors in tomcat,
 it's a apache2 based configuration only. However im not sure if wicket
 can pickup the different hosts..


If you've got it working somehow, please share! :)  Here's how I had
to set up my system to get the proxy names working correctly:

Apache Configuration:

<VirtualHost *:80>
     ServerName domain1.com
     ProxyPass /website http://localhost:8081/site1
     ProxyPassReverse /website http://localhost:8081/site1
</VirtualHost>

<VirtualHost *:80>
     ServerName domain2.com
     ProxyPass /website http://localhost:9081/site2
     ProxyPassReverse /website http://localhost:9081/site2
</VirtualHost>

Tomcat Configuration:

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

<Connector port="9081"
          proxyName="domain2.com"
          proxyPort="80"/>

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



--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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

Reply via email to