Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-14-2006, 05:16 AM   #1
Registered: Oct 2005
Posts: 47

Rep: Reputation: 15
Apache Basic Authentication not working in Gentoo

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
       DocumentRoot /var/www/localhost/cgi-bin/BackupPC
       ErrorLog logs/
       CustomLog logs/anaconda.localhost.comaccess_log common
       <Directory /var/www/localhost/cgi-bin/BackupPC>
               Options FollowSymLinks
               Options +ExecCGI
               AuthName "Tiger Login:"
               AuthType Basic
               AuthUserFile /usr/local/etc/htpasswd
               Require user libregeek
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.

Old 03-14-2006, 10:16 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,213

Rep: Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405
You need a:
AllowOverride AuthConfig
AllowOverride All
inside the <Directory>...</Directory>


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic Authentication woosting Linux - Software 0 01-20-2005 06:00 AM
[SOLVED] Apache basic authentication gypsy_rabbi Linux - Security 3 01-17-2005 09:09 PM
apache .htaccess basic authentication not working quite right kleptophobiac Linux - Software 3 01-10-2004 03:43 PM
apache 1.3.27, basic authentication problem Robert0380 Linux - Software 6 06-08-2003 10:51 PM
Apache users - Basic login authentication with Apache2 piglingz Linux - Software 1 04-06-2003 10:52 PM

All times are GMT -5. The time now is 02:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration