Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Host Directive

Charles P. Killmer

2004-05-26

Replies:

I have a few websites that I wish to run JSP pages through Tomcat. Now
there are too many host names to create the multiple Aliases required to
get this working properly. Is there a way to configure the host to
listen on a single IP address instead of the host name?

IE
site1.com -> 172.1.1.2
www.site1.com -> 172.1.1.2
other.site1.com -> 172.1.1.2
... -> 172.1.1.2

site2.com -> 172.1.1.3
www.site2.com -> 172.1.1.3
other.site2.com -> 172.1.1.3
... -> 172.1.1.3


Also can I configure the root of the site to parse the JSP files?
Currently I have to have all of the JSPs in a cgi folder, like the
jsp-examples folder.

Thank You
Charles Killmer
Netgain Technology
CharlesK@(protected)
Office: (320) 251-4700 ext 107

©2008 junlu.com - Jax Systems, LLC, U.S.A.