On Wed, 2011-03-30 at 14:53 -0400, Christopher Schultz wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > James, > > 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: > > http://www.mydomain.com/tomcat/myapp.jsp > > > > 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: > > http://myapp.mydomain.com > > 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 http://myapp.mydomain.com > > Good. > > > What apache and tomcat config files do I need to modify, and how, to > > make http://myapp.mydomain.com load my app automatically? > > Post your relevant httpd configuration, first: we'll start with what > you've got.
Ok, my httpd.conf is pretty standard. It includes proxy_ajp.conf which has: LoadModule proxy_ajp_module modules/mod_proxy_ajp.so ProxyPass /tomcat/ ajp://localhost:8009/ The rest, worker.properties, server.xml, are pretty standard, so I'm not sure what I should post unless I include everything. Do I need to post everything? ProxyPass for path-less requests sounds fine to me. Thanks for your help. James --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org