I'm assuming you are talking about HTTP Basic authentication which is
handled by Apache and not the JRun web server.  

Are you placing .htaccess files in the .war file for your webapp?  If
you are it probably won't work because when the request is sent to the
Apache web server, it will look in the default document directory first
for the URL string and if it isn't there it will default to other
configured proxys (i.e. the JRun app server)and hand off the request to
them. Any .htaccess files need to be handled by Apache, so if your
.htaccess files are part of your webapp in JRun they will have 'missed
the boat' so to speak.

One thing to try (and this is just a big guess) is to create a directory
structure similar to your webapp under the default document directory in
Apache (i.e. /usr/local/apache2/htdocs/[webapp-name] and place your
.htaccess file there.  It may have the potential of confusing the
bejeebies your Apache process and not going to the JRun app server at
all, so you will just have to try it.  (Like I said, I'm only guessing).

Hope that helps, and good luck :-)

Jeffrey Anderson
Systems Programmer
Center For Teaching And Learning
Mesa Community College -- 480-461-7709
[EMAIL PROTECTED]

----- Original Message -----
From: Richard Crawford <[EMAIL PROTECTED]>
Date: Tuesday, April 20, 2004 3:57 pm
Subject: Password-protected directories

> I'm running JRun4 on Apache 2.0.44.  I need to set up subdirectories
> within my application that are password protected.  I've tried using
> .htaccess but that doesn't seem to be doing the job.  How do I set
> this up?
>
> --
> Richard S. Crawford
> Programmer III,
> UC Davis Extension Distance Learning Group
> (http://unexdlc.ucdavis.edu)(916)327-7793 /
> [EMAIL PROTECTED]
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to