tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: virtual host for apache/tomcat server
Date Wed, 30 Mar 2011 18:53:00 GMT
Hash: SHA1


On 3/30/2011 2:36 PM, James Pifer wrote:
> I have the following installed on CentOS 5.5
> httpd-2.2.3-43.el5.centos.3
> tomcat5-5.5.23

Any opportunity to upgrade? Tomcat 5.5.23, while current and still
supported, is basically in maintenance-mode. TC 7 is where the real
action is these days :)

> I have a small jsp app that I CAN hit through apache like:
> So tomcat in the url above is the apache proxy address for the tomcat
> server. 

Okay. What proxy are you using mod_proxy_ajp? mod_proxy_http? mod_jk?
What are your ProxyPass settings (or JkMounts)?

> I want to setup a virtual host in apache to automatically load this app
> if I type:

Sounds reasonable. Obviously, you'll have to register that hostname in
DNS somewhere. Once you've done that...

> Looking at many howtos and FAQ's I'm still having trouble figuring this
> out. 
> My jsp is located at:
> /usr/share/tomcat5/webapps/ROOT/myapp.jsp

Oh, good: you're using the ROOT webapp. So many people want to use
"mystupidname" instead of ROOT and just give themselves headaches when
what they really want is ROOT.

> I have myapp.jsp added to the httpd/apache DirectoryIndex. 

That's not going to work the way you want it to work. Instead, you want
to do a ProxyPass that maps path-less requests to Tomcata, and then set
myapp.jsp as a "welcome file" in your webapp's WEB-INF/web.xml file.

> I have a DNS entry configured and working for


> What apache and tomcat config files do I need to modify, and how, to
> make load my app automatically?

Post your relevant httpd configuration, first: we'll start with what
you've got.

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message