Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-22-2003, 06:49 AM   #1
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 605

Rep: Reputation: 31
Angry is htaccess on apache 2.0 not the same as in 1.3


I am using apche 2.0 on redhat 8.0, I configure the httpd.conf to secure some directories
I create .htaccess in that directory

AuthType Basic
AuthName "Password required"
AuthUserFile /var/www/html/presse/.htpasswd
require valid-user

the file /var/www/html/presse/.htpasswd is generated by the htpasswd

I do the same thing on apache 1.3 over redhat 7.1
the response is
but on redhat 8.0 (apache 2):
I get the dialog box for the username and passwd, but when I write the user and passwd it gives the dialog box again, whithout error on passwd
it seems that the control is not done ?

thank you for help
Old 07-22-2003, 06:56 AM   #2
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Are there any suggestions in the Apache error log? Is the .htpasswd file outside of the document tree? I'm sucessfully using exactly the same options for Apache 1.3 and 2.0. Are you setting this in httpd.conf or via .htaccess files? If you've using .htaccess files what "options" are set on the directory?


Old 07-22-2003, 09:39 AM   #3
LQ Newbie
Registered: Jun 2003
Posts: 14

Rep: Reputation: 0
Make sure your file permissions are OK. I managed to set up apache 2 in RH 9.0 where the user that apache ran as did not have permission to read the password file I created.
Old 07-23-2003, 06:17 AM   #4
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 605

Original Poster
Rep: Reputation: 31
htpasswd hasn't permission

thanks for JakeS and JHarris.
jakeS is right !!!

the file htpasswd has not the right permission for others. stupid htpasswd !!

thank you again



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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Apache and .htaccess spud Programming 1 03-17-2005 12:52 PM
Apache/2.0.51 .htaccess 2782d4 Linux - Software 2 02-08-2005 01:12 PM
apache .htaccess linuxanswer Linux - General 1 05-01-2004 05:20 PM
apache .htaccess emetib Linux - Software 4 09-22-2003 07:50 AM
.htaccess in apache 2 im1crazyassmofo Linux - Software 1 04-04-2003 02:50 AM

All times are GMT -5. The time now is 10:44 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