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

Notices

Reply
 
Search this Thread
Old 03-23-2005, 11:12 AM   #1
jimieee
Member
 
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)


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
 
  


Reply


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 03:37 PM
tomcat home directory kpachopoulos Fedora 5 04-07-2006 03:33 PM
running tomcat with eclipse as non-root user javcerty Linux - Software 1 03-05-2005 08:36 PM
Install tomcat as a module of Apache for running JSP kernelvn Linux - Networking 1 09-28-2004 12:41 AM
apache - public_html (mod_userdir) loaded but wont work :( d33pdream Linux - Software 1 01-20-2003 09:25 AM


All times are GMT -5. The time now is 07:35 AM.

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