[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Apache and Tomcat virtual question



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 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

Attachment: signature.asc
Description: This is a digitally signed message part


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]