httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] Authentication Problems
Date Tue, 09 Sep 2003 10:27:07 GMT
>-----Original Message-----
>From: Robert - []
>I'm currently running Apache/2.0.40 hosting 6 seperate Virtual 
>hosts. One of 
>the hosts requires a secure directory so that clients are prompted to 
>authenticate in order to access its contents. For the host in 
>question, I've 
>added the following:
><VirtualHost * >
>        ServerName
>        DocumentRoot /www/
>        ServerAdmin
>        ServerAlias *
>        ErrorLog /var/wwwlogs/
>        CustomLog /var/wwwlogs/ common
>        <Directory /www/>
>        AllowOverride AuthConfig
>        AuthType Basic
>        AuthName "Client Access"
>        AuthUserFile /www-passwd-file/users
>        Require valid-user
>        </Directory>

You don't need "AllowOverride AuthConfig" in the <Directory> container.
This directive says: "allow .htaccess files in this directory to
override the main config for AuthConfig directives only". Usually, you
use this if you are going to put all your AuthConfig directives
(AuthType, AuthName etc.) in a .htaccess file. Since you have put all
yours in a <Directory> container in the main config, you don't need the
.htaccess file nor, consequently, the AllowOverride directive. The two
methods are alternative to each other and you shouldn't mix them.

The danger is that if you *do* happen to have a .htaccess file in
/www/ and it contains some AuthConfig directives, they
will override what you have in the main config and could screw things

So check that first and post back if there's still a problem.

Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

>I've checked that the paths being used are correct, and that all files 
>reference exist and have the right permissions. The 
>AuthUserFile has been 
>created using the following command:
>htpasswd -c /www-passwd-file/users test
>The problem is that I'm not getting a prompt. Rather, the 
>fails immediately with the following message:
>Authorization Required
>This server could not verify that you are authorized to access 
>the document 
>requested. Either you supplied the wrong credentials (e.g., 
>bad password), 
>or your browser doesn't understand how to supply the 
>credentials required
>The browser in question is IE6.
>I've traweled through a number of FAQ's and postings, but 
>still can see 
>where I'm going wrong.
>Any suggestions for a solution would be welcomed.
>Sign-up for a FREE BT Broadband connection today! 
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:
Diese E-mail ist eine private und persönliche Kommunikation. Sie hat
keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Swiss Exchange.
This e-mail is of a private and personal nature. It is not related to
the exchange or business activities of the SWX Swiss Exchange. Le
présent e-mail est un message privé et personnel, sans rapport avec
l'activité boursière de la SWX Swiss Exchange.

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message