LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Running jsps in user home directory doesn't work (Apache Tomcat and mod_userdir) (https://www.linuxquestions.org/questions/linux-networking-3/running-jsps-in-user-home-directory-doesnt-work-apache-tomcat-and-mod_userdir-305086/)

jimieee 03-23-2005 10:12 AM

Running jsps in user home directory doesn't work (Apache Tomcat and mod_userdir)
 
Hi,

I've got a problem where I can execute jsps out of my apache root no probs, but can't out of my user home directories (404 message from Apache Tomcat/5.0.27). I can open html documents from these home directories though, what did I forget to allow?

Apache 2.0.52
Tomcat 5
jk2.0.4
No relevant error messages in error logs

Here's the relevant part of apache conf:

Code:

### Load the jk2 module
LoadModule jk2_module /usr/lib/apache2-extramodules/mod_jk2.so
### Set the config file for jk2
JkSet config.file /etc/apache2/conf/workers2.properties
### Forward all jsp files to the worker
<Location "/*.jsp">
JkUriSet worker ajp13:localhost:8009
</Location>
### Every user a website
UserDir public_html
UserDir disabled root
UserDir enabled james

Here's the relevant part of server.xml:

Code:

<Host name="koopie" debug="0" appBase="/var/www/localhost/htdocs" unpackWARs="true" autoDeploy="true"
  xmlValidation="false" xmlNamespaceAware="false">
    <Logger className="org.apache.catalina.logger.FileLogger" directory="logs"  prefix="koopie"
    suffix=".log"  timestamp="true"/>
    <Context path="" docBase="" debug="0" allowLinking="true"/>
    <Listener className="org.apache.catalina.startup.UserConfig" directoryName="public_html"
    userClass="org.apache.catalina.startup.PasswdUserDatabase"/>
</Host>

I'm trying to open koopie/~james/test.jsp It does exist and has the same ownship and permissions as index.html (which works).

Thanks,

James


All times are GMT -5. The time now is 11:19 AM.