Setting up Apache ~userdir with mod_jk

2002-12-14 Thread Kevin Conaway
Is it possible to setup Apache/Tomcat/mod_jk to let users have servlets in the 
~/public_html directory?  I have tomcat setup so that if you call 
http://localhost:8080/~user it works, but it doesnt work through the main Apache 
server and mod_jk.

Any thoughts?

Kevin



Re: UserDir

2002-08-03 Thread Neil Zanella


I am no expert on tomcat but as far as I know the tomcat server needs to
be restarted each time the contents of one of the web application source
code files changes. If something like UserDir really can be set so that
$CATALINA_HOME is different for every user, then there should probably
be a cron job on the system to restart the server at regular time
intervals or something like that.

And by the way, what exactly did you do to reconfigure your tomcat
installation?

Regards,

Neil

On Fri, 2 Aug 2002, Adrian Montero wrote:

 
 I reconfigured my jakarta to handle user dir files. Everything works 
 fine and dandy like in $CATALINA_HOME/webapps. However when I try to run 
 a servlet (only in the ~userdir) I get the download dialog from my web 
 browser. I have tried to copy $CATALINA_HOME/webapps/examples to my 
 userdir and indeed jsps work but not servlets it doesnt even find them. 
 Anyone got any ideas?
 
 Regards
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




UserDir

2002-08-02 Thread Adrian Montero


I reconfigured my jakarta to handle user dir files. Everything works 
fine and dandy like in $CATALINA_HOME/webapps. However when I try to run 
a servlet (only in the ~userdir) I get the download dialog from my web 
browser. I have tried to copy $CATALINA_HOME/webapps/examples to my 
userdir and indeed jsps work but not servlets it doesnt even find them. 
Anyone got any ideas?

Regards



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: UserDir and Tomcat.

2000-12-13 Thread Jean-Luc BEAUDET

Kenichi Mori a écrit :

 Hi!

 I'm trying to make Tomcat work with Apache.
 Platform is Kondara/MNU Linux 1.2-new(Based on RHL 6.x).
 I want to make .jsp enable for each user accounts.

 Currently, I can access JSPs by accessing URL:
 http://mytesthost/examples/jsp/

 I checked appache's UserDir settings.
 And I put an test .jsp in my public_html folder, then I try to access it by
 using this URL:
 http://mytesthost/~kenichi/hello.jsp
 Tomcat replies "404 Not Found" error.
 Instead of saying:
 "You re Running JSP"

 I think I have to do something more. But I could not find any hints on this
 issue.
 Is there any way to solve this problem?

 ***
 Kenichi Mori
 Engineer
   Business Solution Div.

 Open Interface Inc.
 URL:http://www.oii.co.jp
 ***

Well i've had quite the same Pb with my Apache Tomcat configuration.
I wanted several users, each gettin' is own Home Dir, acces and run there jsp
and servlet App.
So,
/home/user/www
Example
/home/cdelpont/www
/home/oseignol/www
/home/jlbeaudet/www

The stuff is like this:

For Apache:
UserDir is www
DirectoryIndex is index.html Hello.jsp

For Tomcat - that is to say server.xml -
i had to add those Context
Context path="/~cdelpont"
 docBase="/home/cdelpont/www"
 crossContext="false"
 debug="1"
 reloadable="true" 
/Context
Context path="/~oseignol"
 docBase="/home/oseignol/www"
 crossContext="false"
 debug="1"
 reloadable="true" 
/Context
Context path="/~jlbeaudet"
 docBase="/home/jlbeaudet/www"
 crossContext="false"
 debug="1"
 reloadable="true" 
/Context

When i try it by http://localhost:8087/~jlbeaudet
I have my Helloworld.jsp runnin' OK
The same test with http://localhost:85/~jlbeaudet
runs OK too !

Be sure not to forget the well known:
 JkMount /~jlbeaudet/servlet/* ajp12
JkMount /~jlbeaudet/*.jsp ajp12
in yur Apache conf!

Hope this will help you!
Please keep me connected

Friendly yurs

Jean-Luc B ;O)






UserDir and Tomcat.

2000-12-12 Thread Kenichi Mori
Hi!

I'm trying to make Tomcat work with Apache.
Platform is Kondara/MNU Linux 1.2-new(Based on RHL 6.x).
I want to make .jsp enable for each user accounts.

Currently, I can access JSPs by accessing URL:
http://mytesthost/examples/jsp/

I checked appache's UserDir settings.
And I put an test .jsp in my public_html folder, then I try to access it by
using this URL:
http://mytesthost/~kenichi/hello.jsp
Tomcat replies "404 Not Found" error.
Instead of saying:
"You re Running JSP"

I think I have to do something more. But I could not find any hints on this
issue.
Is there any way to solve this problem?

***
Kenichi Mori
Engineer
  Business Solution Div.

Open Interface Inc.
URL:http://www.oii.co.jp
***