You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jason Keltz <ja...@cs.yorku.ca> on 2004/02/24 18:44:01 UTC

mapping webapps to user home directories

Hi.

I'm new to tomcat and have a few questions that I'm hoping someone might
be able to help me with.

If I map the "webapps" directory in users home directories as contexts
like this in server.xml:

        <Listener className="org.apache.catalina.startup.UserConfig"
            directoryName="webapps"
            userClass="org.apache.catalina.startup.PasswdUserDatabase"/>

... and a user does not have a "webapps" directory when the tomcat server
starts, but adds one later, can I get tomcat to re-read these contexts?
In fact, instead of reading all of the "webapp" directories at startup, is
there any well to tell tomcat to look for them as requests come in?

If I configure a server in this way -- can the users still have their own
host-based security control over who accesses their programs? or is this
only done through server.xml?

Finally -- if I copy the "jsp-examples" from the tomcat distribution into
my own "webapps" directory (/cs/home/jas/webapps), and I try to run the
first 3 examples, everything works.  However, if I go on to the next
example -- "Functions", or any of the other examples, they do not work.
It appears this is because the server is looking for "webapps/WEB-INF" and
not "webapps/jsp-examples/WEB-INF" (I think).  Any idea why? It works
under the root context.

Thanks for your assistance..

Jason.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org