Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-26-2003, 01:05 PM   #1
LQ Newbie
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
Question Apache Auth Password in httpd.conf ignored

I am an extreme Newbie to both Linux and Apache.

I am running Redhat 7.3 and Apache 1.3.28 and FrontPage Extension Version4.0.

I am trying to learn about setting up passwords for individual directories. I have read through the Apache manual several times and searched multiple sites for this problem. It seems other posts only have trouble gaining authorization.

I am currently testing apache using our intranet. I have been able to serve the web page fine but cannot get any machine local or another client respond to any password settings I have tried.

I have tried setting up Authorization types Digest and Basic. Both with and without using the .htacces files.

I would like to set it up from my httpd.conf within Directory directives.

Here is the section from my httpd.conf regarding the auth files. I have tried putting this section both inside and outside of the <VirtualHost. When Apache starts up it says that it is using the for the ServerName, Syntax OK. so I thought I should put it within the VirtualHost section.

I will e-mail you the complete httpd.conf apon request.

<Directory /var/www/html/xxx/0708>
AllowOverride None
AuthType Digest
AuthName "Password and Id Required"
AuthDigestFile /usr/local/xxxx/xxx/.htpasswd
require user kxinc
Satisfy all

Thanks in advance, I am running out of things to try and am beginning to think it is something having todo with another control outside of Apache. BTW I have turned off ipchaines and iptables.
Old 09-26-2003, 09:12 PM   #2
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
just in case you see something new:
Old 09-29-2003, 02:14 PM   #3
LQ Newbie
Registered: Sep 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the links.

I tried to duplicate the settings in one of the links just for fun. I still cannot get my browser to respond to the .htaccess commands.

Do any commands/methods exist to debug where the problem is occurring with the .htaccess? Someone said on another post to type junk into the .htaccess file. I tried this and still get all the same responses.
Old 09-30-2003, 08:42 AM   #4
LQ Newbie
Registered: Sep 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Here is a link I just found for others having a similar problem. This helped me to realize my problem could be beyound the apache set-up.

Here is the troubleshooting section from this link.

Here are some of the most common problems I've seen people have (or have had myself) with .htaccess files. One thing I should stress first, though: the server error log is your friend. You should always consult the error log when things don't seem to be functioning correctly. If it doesn't say anything about your problem, try boosting the message detail by changing your LogLevel directive to debug. (Or adding a LogLevel debug line of you don't have a LogLevel already).

'Internal Server Error' page is displayed when a document is requested
This indicates a problem with your configuration. Check the Apache error log file for a more detailed explanation of what went wrong. You probably have used a directive that isn't allowed in .htaccess files, or have a directive with incorrect syntax.
.htaccess file doesn't seem to change anything
It's possible that the directory is within the scope of an AllowOverride None directive. Try putting a line of gibberish in the .htaccess file and force a reload of the page. If you still get the same page instead of an 'Internal Server Error' display, then this is probably the cause of the problem. Another slight possibility is that the document you're requesting isn't actually controlled by the .htaccess file you're editing; this can sometimes happen if you're accessing a document with a common name, such as index.html. If there's any chance of this, try changing the actual document and requesting it again to make sure you can see the change. this isn't happening.
I've added some security directives to my .htaccess file, but I'm not getting challenged for a username and password
The most common cause of this is having the .htaccess directives within the scope of a Satisfy Any directive. Explicitly disable this by adding a


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
apache httpd.conf ilnli Linux - Software 9 01-11-2005 07:58 AM
Apache httpd.conf help BoardinBum Linux - Software 4 12-29-2004 01:59 PM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 11:32 PM
apache httpd.conf https Hube Linux - Software 7 04-07-2003 09:52 PM
apache httpd.conf plisken Linux - Software 1 02-01-2003 03:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:52 PM.

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