LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-08-2006, 11:43 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
Unhappy Apache doesn't want to authenticate


I have just update debian (testing) and as I had very few modifications to the default site I asked to replace my configuration.

Now I can't get apache to authenticate when I want to see one of the directories.

Look what I have here:
Code:
        <Directory "/var/www/sarg/">
                Order deny,allow
                Deny from all
                Allow from 192.168.0.0/23
                Allow from 10.78.0.0/24
                Allow from 10.79.0.0/24
                AuthType Basic
                AuthName "Estadisticas del Proxy - HEP"
                AuthUserFile /etc/apache2/passwords
                Require user proxy
        </Directory>
This is the error from error.log:
Code:
[Wed Nov 08 13:35:53 2006] [error] [client 192.168.0.103] access to /sarg failed, reason: require directives present and no Authoritative handler
If I comment out the Auth*s and the Require clause I get to see the page without problems.

What am I leaving out?

I have created the /etc/apache2/passwords file with htpasswd and defined the user proxy.
 
Old 11-08-2006, 11:50 AM   #2
AlbinoJap
Member
 
Registered: Mar 2004
Posts: 36

Rep: Reputation: 15
Is 'AuthBasicAuthoritative' set to Off anywhere in your configuration?
 
Old 11-08-2006, 12:16 PM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
There's no such clause in the configuration. Not in apache2.conf nor in sites-enabled/000-default.
 
Old 11-09-2006, 11:03 AM   #4
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
The problem is solved. I had to enable an apache module so it worked again:

sudo a2enmod authz_user

I hope it helps someone that meets the same situation.
 
  


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
can't authenticate to ldap from apache using groups rem1986 Linux - Server 0 09-01-2006 11:56 AM
Apache 2 is not working right when i try to authenticate users stormrider_may Linux - Networking 2 03-01-2006 05:06 AM
apache authenticate to Active Directory zuessh Linux - Software 1 07-08-2005 03:29 PM
authenticate against AD paul_mat Linux - Networking 5 05-28-2005 08:34 AM
can't authenticate in apache using PAM JGarcia Linux - Security 1 09-03-2003 12:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:18 PM.

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