On 27.05.2010 05:11, Caldarale, Charles R wrote:
From: Bithost Ltda. [mailto:bithost.ch...@gmail.com]
Subject: Re: apache 2 + tomcat 6 virtualhost question
Well it seems that such is for only one domain, and i will be deploying
more than one, thats why i cant use ROOT
Then declare multiple<Host> elements in Tomcat, each with its own appBase
setting, and using ROOT as the default webapp for each. The doc is here:
http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html
And some getting started examples for the above:
http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts
Are you using httpd for something other than routing traffic to Tomcat (e.g.,
running PHP)? If not, why do you have it?
I would also suggest:
- try Tomcat virtual Hosts and a ROOT context per host
- if this doesn't work for you for some good reason, rewriting URLs is
easier with mod_proxy than with mod_jk. It is one of the few areas,
where mod_jk lags.
- if you still want to use mod_jk, because it has other benefits, read
about the solution on
http://tomcat.apache.org/connectors-doc/generic_howto/proxy.html#URL%20Handling
The rest of the page might be interesting for you too.
Regards,
Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org