Apache and Tomcat virtual question

Chong Yu Meng chongym at cymulacrum.net
Mon Oct 9 04:24:55 UTC 2006


On Sun, 2006-10-08 at 18:34 -0700, M E Fieu wrote:
> Hi.. My unix host is installed with tomcat and apache and my tomcat is listen on 8080 port.  And
> my java application is installed at this folder /usr/java/apps/ (example) with /ABC as context
> path. Right now,when users access http://myserver.com/ABC or http://myserver.com:8080/ABC, it will
> go to the java web application.  But I would like to create a virtual host so that whenever user
> access http://ABC.com:8080 will go to Java application (of course we will set ABC.com to the
> server IP in DNS). Where and how should i configure it? httpd.conf or server.xml ?

That would depend on how your hosting provider has setup Apache and
Tomcat. If Apache is configured as the front-end, then the virtual host
configuration goes into Apache. 

Also, it depends on whether all your virtual hosts need access to the
same web application, or they will be deploying different web
applications.

For your requirements, I think the easiest way to accomplish this is to
setup virtual hosting on Apache and force it to hand-off all requests to
Tomcat, but that means that you will have to block port 8080.

HTH
-- 
Pascal Chong 
email:  chongym at cymulacrum.net 
web:    http://cymulacrum.net
pgp:    http://cymulacrum.net/pgp/cymulacrum.asc

"La science ne connaît pas de frontière parce que la connaissance
appartient à l’humanité. et que c’est la flamme qui illumine le monde."

-- Louis Pasteur
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20061009/9f914600/attachment-0001.sig>


More information about the fedora-list mailing list