Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.
(Answer) (Category) Java Apache Project : (Category) Apache JServ 1.0 : (Category) Configuration :
How do I setup basic authentication with Apache and Apache JServ?
You need to use the Location tag in Apache instead of the Directory tag. 
See the Apache documentation http://www.apache.org/ for more information on 
the use of the Location tag.

Here is an example that worked for one Apache JServ user:

<Location /servlet/msgboard>
  AuthType Basic
  AuthName msgboard_access
  AuthUserFile /usr/local/apache/conf
  <Limit GET POST>
    require user some_user
  /Limit
/Location
jonATworking-dogsDOTcom
You don't always have to use the <Limit ...>/Limit directive. Remember, it restricts access to the _selected methods_ (and forgets about HEAD and OPTIONS, at least as for Apache 1.3.3, while the Auth* just simply restrict the access.
vtATvpDOTnet
For those new to all this, on Linux (and other Unices?) you can create the password file using /usr/bin/htpasswd.
bknightsATearthlinkDOTnet
[Append to This Answer]
Previous: (Category) Classloaders, Classpaths and Classloading
Next: (Answer) When accessing any servlet I get the following error: "Premature end of script headers".
This document is: http://java.apache.org/faq/?file=22
[Search] [Appearance] [Show Expert Edit Commands]
This is a Faq-O-Matic 2.709.
Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.