You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Benj <be...@gmail.com> on 2008/09/24 15:18:14 UTC
[users@httpd] Multiple paths targeting the same webapp
Hi,
I would like to have different urls targeting the same webapp on Tomcat.
I'm using mod_jk 1.2.23.
I have two urls : http://myhost/mywebapp1/index.do and
http://myhost/mywebapp2/index.do.
Now I want these urls to target the same tomcat webapp.
Incoming requests on /mywebapp1 and /webapp2 have to target /mywebapp
without changing the url of the user.
How can I do this ? Notice, that I have to use mod_jk for the ajp dialog.
mod_proxy_ajp is not suitable in my context.
For now, I have to copy my webapp twice on Tomcat (webapp1 and webapp2).
<VirtualHost myhost:80>
...
JkMount /mywebapp1/*.do myworker
JkMount /mywebapp2/*.do myworker
...
</VirtualHost>
Is there a better way to do this ?
Regards,
--
Bj
--
View this message in context: http://www.nabble.com/Multiple-paths-targeting-the-same-webapp-tp19648646p19648646.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org