On 14/03/06, Boyle Owen <[EMAIL PROTECTED]> wrote:
> > -----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

Dear Mr. Owen,
   I  have comment out the directive _AllowOverride AuthConfig_ as you
suggested. I have also checked in the
/var/www/localhost/cgi-bin/BackupPC for any .htaccess files. The
folder doesn't have any .htaccess files. But still the authentication
dialog doesn't appear and the browser directly displays the protected
page.
regards
Manilal

Reply via email to