The solution I found to this kind of issue* was to setup virtual hosting in tomcat. Provided that your tomcat & your apache install are on the same machine, this is actually straightforward, just add an extra <Host> element to your server.xml representing imlearning.de with its own webapps dir... see http://tomcat.apache.org/tomcat-5.5-doc/config/host.html

Then your learning webapp would be setup as the ROOT webapp for the imlearning.de virtual host. And your jk config should then bre straightforward.

Incidentally, if you're serving everything through tomcat and have no need for any apache-specific features, then you may want to investigate whether it would be more performant (and much simpler!) to have tomcat be serving directly (without apache + jk) - of course to do this with virtual hosts and all requires an extra ip address on that machine (for tomcat to bind to, which apache won't bind to) - and does require tomcat to serve port 80 - which may (depending on OS) be a bit of fuss to setup.

hth

Tim

*I think (but am not 100% sure) that you can't do what you're trying to do - to reroute requests on one URL to a subpath (specific webapp) of another URL via mod_jk on its own. I imagine you would need to use mod_rewrite together with mod_jk - and that sounds more complex than the tomcat virtual hosts route.


Gerd Meyer wrote:
Hey …
I´m searching the whole day for a solution for the following thing: Im using mod_jk.so with apache.
One application is in tomcat installation directory:
/usr/java/tomcat/webapps/learning
I want to reach this application over the URL http://www.imlearning.de
What i have to do? In the httpd.conf i´ve written: <VirtualHost 213.161.142.193:80>
  ServerName  imlearning.de
  ServerAlias www.imlearning.de imlearning.de
<http://www.imlearning.de/> JkMount /* worker1
</VirtualHost>
What i´ve to do in workers.properties ???? Thanks ....
Gerd



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

Reply via email to