On Wed, 9 Jan 2002, Jonathan C. Detert wrote: > [snip]
> > For more info, see the "Host" page in: > > > > http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ > > I like this choice. I followed the directions in the above URL, and > restarted tomcat. However, I get tomcat's 404 error when i try to > access something like http://my.server.name:8080/~detertj/ or anything > underneath it. Tomcat's logs reveal nothing more than that. > > Precisely, here's what i did: > in $CATALINA_HOME/conf/server.xml, inside the "localhost" <Host> > container, inside the "Standalone" <Engine> container, inside the > "Tomcat-Standalone" <Service> containter, I added this tag: > > <Listener className="org.apache.catalina.startup.UserConfig" > directoryName="www" > userClass="org.apache.catalina.startup.PasswdUserDatabase"/> > > I also tried specifying the homebase like so : > > <Listener className="org.apache.catalina.startup.UserConfig" > directoryName="www" > homeBase="/home/staff" > userClass="org.apache.catalina.startup.HomesUserDatabase"/> > > Neither way worked. The server is an NIS client, and so the /etc/passwd > file (normally) has no information about 'detertj' in it. To test whether > that was the problem, i added a full record in /etc/passwd for 'detertj', > but it didn't help. > Using the "PasswdUserDatabase" option won't work at all for an NIS client -- it wants to be able to read the *actual* user information from "/etc/passwd" so that it can locate all of the user home directories. For both options (but this might cause the homeBase approach to fail in particular), you need to make sure that the operating system username under which Tomcat is running has at least read and execute access to the home directory and the actual webapp directory (in your case, this would be "/home/staff/detertj" and "/home/staff/detertj/www"), *and* all the nested contents of the "www" subdirectories. > Any ideas what i did wrong? Or, any ideas what else to look for or > test? > > AtDhVaAnNkCsE, > > Jon > Craig McClanahan -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
