Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-23-2005, 10:12 AM   #1
Registered: Aug 2003
Location: London, UK
Distribution: Debian and Fedora for play and RHEL + Solaris for work
Posts: 172

Rep: Reputation: 15
Running jsps in user home directory doesn't work (Apache Tomcat and mod_userdir)


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
No relevant error messages in error logs

Here's the relevant part of apache conf:

### Load the jk2 module
LoadModule jk2_module /usr/lib/apache2-extramodules/
### Set the config file for jk2
JkSet config.file /etc/apache2/conf/
### Forward all jsp files to the worker
<Location "/*.jsp"> 
JkUriSet worker ajp13:localhost:8009 
### Every user a website
UserDir public_html
UserDir disabled root 
UserDir enabled james
Here's the relevant part of server.xml:

 <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" 
I'm trying to open koopie/~james/test.jsp It does exist and has the same ownship and permissions as index.html (which works).




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
tomcat home directory kpachopoulos Fedora 5 04-07-2006 02:33 PM
running tomcat with eclipse as non-root user javcerty Linux - Software 1 03-05-2005 07:36 PM
Install tomcat as a module of Apache for running JSP kernelvn Linux - Networking 1 09-27-2004 11:41 PM
apache - public_html (mod_userdir) loaded but wont work :( d33pdream Linux - Software 1 01-20-2003 08:25 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration