Thank you for this information.

I can go on with this solution because I have very few users including me.
I hope Tomcat will have a future like apache's mod_userdir.
And since Tomcat uses XML for configuration, I believe it will be done by
providing a custom XML tag for configuration to run userdir-jsp.

Thanks again.
Kenichi Mori

-----Original Message-----
From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 13, 2000 7:48 PM
To: [EMAIL PROTECTED]
Subject: Re: UserDir and Tomcat.


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)


Reply via email to