> -----Original Message-----
> From: Manilal K M [mailto:[EMAIL PROTECTED] 
> Sent: Dienstag, 14. März 2006 09:55
> To: users@httpd.apache.org
> Subject: [EMAIL PROTECTED] Basic Authentication not working in 
> Gentoo Linux
> 
> Hello all,
>    I am a newbie in apache, less than 2 weeks of experience. I am
> trying to protect one of my directory in the web server with Basic
> authentication. I am using Gentoo Linux with apache-2.0.55. I see that
> auth_module is loaded  as a Module. I have configured the Virtual Host
> like this. The problem is that the login dialog box never appears in
> the browser and the web page is immediately displayed. The
> configuration I used is (from /etc/apache2/httpd.conf):
> user backuppc
> group backuppc
> <VirtualHost anaconda.localhost.com:80>
>         DocumentRoot /var/www/localhost/cgi-bin/BackupPC
>         ServerAdmin [EMAIL PROTECTED]
>         ServerName anaconda.localhost.com
>         ErrorLog logs/anaconda.localhost.com-error_log
>         CustomLog logs/anaconda.localhost.comaccess_log common
>         <Directory /var/www/localhost/cgi-bin/BackupPC>
>                 Options FollowSymLinks
>                 Options +ExecCGI
>                 AuthName "Tiger Login:"


>                 AllowOverride AuthConfig

This directive is a bit funny... It says:

"allow any Auth directives in a .htaccess file in this directory to override 
the main config (ie, this file)". 

Since you have put your Auth directives in the main config, it doesn't make 
much sense to allow them to then be overridden (unless you have a really 
complicated setup - I'm guessing you have a simple setup). 

I would remove this directive and also check you don't have a .htaccess file in 
/var/www/localhost/cgi-bin/BackupPC. If you do, decide if you need it... 
(especially if it has "Satisfy any" in it...).

If that doesn't get it working or if you want further advice about .htaccess 
files and when to use and not to use them, check the docs 
http://httpd.apache.org/docs/2.2/howto/htaccess.html and/or post back (add 
error and access log entries).

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

>                 AuthType Basic
>                 AuthUserFile /usr/local/etc/htpasswd
>                 Require user libregeek
>         </Directory>
> </VirtualHost
> 
> I am able to run the same setup in my Fedora Core 4 server. But it
> fails in the Gentoo Server. I can't get what had gone wrong. I
> searched the MARC archives, but couldn't find a workable solution.
> Please help me. I am in great trouble.
> I can't find anything wrong in either syslog or apache log. Any help
> would be appreciable.
> 
> regards
> Manilal
> 
Diese E-mail ist eine private und persönliche Kommunikation. Sie hat keinen 
Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail is of a 
private and personal nature. It is not related to the exchange or business 
activities of the SWX Group. Le présent e-mail est un message privé et 
personnel, sans rapport avec l'activité boursière du Groupe SWX.
 
 
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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to