Tomcat / Httpd configuration

  • Thread starter gregory.tanneau
  • Start date
G

gregory.tanneau

Hi all !

I have a tomcat installation hosting 3 application, say

http://localhost:8080/app1
http://localhost:8080/app2
http://localhost:8080/app3

I have one apache httpd in front of tomcat.

What i want to do, is to map a "root" url to each of my tomcat
context :

http://localhost:9090/ => http://localhost:8080/app1
http://localhost:9091/ => http://localhost:8080/app2
http://localhost:9092/ => http://localhost:8080/app3

I tried many configuration, using mod_jk, mod_rewrite, mod_proxy and
mod_proxy_html ...

The best config i found to do so, is using mod_proxy to map / to a
tomcat context, with help from mod_proxy_html for html rewriting. But
this module is not fully fonctionnal, since it breaks some of my code
(some tags are not supported, and i dont want to try to comile a 3.0-
dev version).

Please tell me what is the best way to set such a configuration.


Thx !
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

I have a tomcat installation hosting 3 application, say

http://localhost:8080/app1
http://localhost:8080/app2
http://localhost:8080/app3

I have one apache httpd in front of tomcat.

What i want to do, is to map a "root" url to each of my tomcat
context :

http://localhost:9090/ => http://localhost:8080/app1
http://localhost:9091/ => http://localhost:8080/app2
http://localhost:9092/ => http://localhost:8080/app3

I tried many configuration, using mod_jk, mod_rewrite, mod_proxy and
mod_proxy_html ...

Have you tried putting JkMount directives inside the VirtualHost tags ?

Atne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top