LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-22-2003, 05:49 AM   #1
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

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


hi,

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
bela
 
Old 07-22-2003, 05:56 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
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?

cheers

Jamie...
 
Old 07-22-2003, 08:39 AM   #3
JakeS
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, 05:17 AM   #4
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

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

bela
 
  


Reply



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 11:52 AM
Apache/2.0.51 .htaccess 2782d4 Linux - Software 2 02-08-2005 12:12 PM
apache .htaccess linuxanswer Linux - General 1 05-01-2004 04:20 PM
apache .htaccess emetib Linux - Software 4 09-22-2003 06:50 AM
.htaccess in apache 2 im1crazyassmofo Linux - Software 1 04-04-2003 01:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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