LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-14-2006, 04:16 AM   #1
libregeek
Member
 
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):

Code:
user backuppc
group backuppc
<VirtualHost anaconda.localhost.com:80>
       DocumentRoot /var/www/localhost/cgi-bin/BackupPC
       ServerAdmin root@anaconda.localhost.com
       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:"
               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
libregeek
 
Old 03-14-2006, 09:16 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,157
Blog Entries: 1

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


Reply


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 05:00 AM
[SOLVED] Apache basic authentication gypsy_rabbi Linux - Security 3 01-17-2005 08:09 PM
apache .htaccess basic authentication not working quite right kleptophobiac Linux - Software 3 01-10-2004 02:43 PM
apache 1.3.27, basic authentication problem Robert0380 Linux - Software 6 06-08-2003 09:51 PM
Apache users - Basic login authentication with Apache2 piglingz Linux - Software 1 04-06-2003 09:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:22 AM.

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