----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------




----- Original Message -----
From: Stefan Mainz <[EMAIL PROTECTED]>
To: Java Apache Users <[EMAIL PROTECTED]>
Sent: Thursday, May 11, 2000 9:46 AM
Subject: Re: HTTP Authentication and Servlets


> I have been asking for something like that some time ago. I got get
> recommendation
> to use a special authorization module for apache like cookie_auth. THe
> servlet would
> set a cookie which the apache server will then authenticate on.
> After getting so far, the need to authorize plain HTML-pages disapeared
> an so
> i did not even test it.
>
> If the solution you propose works, i would like to know how.
>
> Stefan
>

Hi,

I just want to mention another possibility provided by Jserv.
It is not using the HTTP Authentication at all and  .htacces files are not
involved.
I have used (and was happy about it) the
ApJservAction   directive. With this i have mapped all html files from a
virtual host to a servlet
like this:
ApJservAction .html  /servlet/MyServlet

Now in my servlet i decided if the user has the privilege to access that
file.
If not send a login page.
If yes, read the request.getPathTranslated and return the html file.

Best wishes,

                    Andras.














--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to