OK I just added the appBase attr to a Host in my server.xml. It did get rid of the Tomcat install. folders showing up as webapps, but it isnt' doing exactly what I thought it would do. Now everything in my appBase shows up in my Manager instance as belonging to that Host, when what I want there is only those directories in my appBase that are referenced by Contexts in my particular Host.
At least the old (appBase-less) method retained the logical mapping defined in the Host section. My reading of the Tomcat config docs seemed to indicate that each Host should have it's own Manager Context defined as opposed to having a single Manager instance that can span multiple Hosts. Is this correct? On Mon, Nov 2, 2009 at 10:05 AM, Jonathan Mast <jhmast.develo...@gmail.com>wrote: > You're right, I totally forgot to put appBase attributes in my Host > declarations. However, httpd only lets *.jsp and *.do requests pass on to > Tomcat so I don't have to worry about the security issue. > > I'm gonna put appBase attributes into my config and see if that fixes it. > > thanks > > > On Fri, Oct 30, 2009 at 7:59 PM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Hassan, >> >> On 10/30/2009 5:07 PM, Hassan Schroeder wrote: >> > On Fri, Oct 30, 2009 at 2:03 PM, Jonathan Mast >> > <jhmast.develo...@gmail.com> wrote: >> >> When I log into the Tomcat Web Application Manager, in addition to the >> >> actual webapps defined in server.xml, it also lists the /bin, /conf, >> /logs, >> >> /temp, /lib and /work directories of the Tomcat installation as if they >> are >> >> webapps. >> >> >> >> I doubt this is correct, so how do I fix it? >> > >> > Sounds like your server.xml is wildly wrong. :-) >> >> +1 >> >> I suspect you have something like this: >> >> <Host appBase="" ... >> >> If you thought "I don't need a webapps directory because all my webapps >> are defined in their own XML files" and you decided to just remove the >> appBase string, then you likely ended up setting your appBase to >> CATALINA_BASE and exposing all your configuration to the world. If >> you're using JNDI DataSources, you might want to change your database >> passwords right about now. ;) >> >> - -chris >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.10 (MingW32) >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ >> >> iEYEARECAAYFAkrri9sACgkQ9CaO5/Lv0PCWAACfQmyQyUGXH1JmWdC5KjjvPrhT >> psoAnAtiufYZvyqE8Fd4D9gZYm4Qa3UB >> =XY3t >> -----END PGP SIGNATURE----- >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> >