LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-02-2003, 02:47 PM   #1
skillcoyne
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Rep: Reputation: 0
htaccess help


I've been playing with setting up a password protected part of our website. I made it work on a test version within the website. However, I just set it up in the directory I really need it and now after I input my name and password I get 500 Internal Server Error. I'm not sure how I caused this. If anyone else has worked with the htpasswd stuff I could use your help

Thanks
 
Old 04-02-2003, 03:13 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Make sure you have
Code:
AllowOverride AuthConfig
for that directory in httpd.conf - if it doens't work try posting your htaccess file.
 
Old 04-02-2003, 03:34 PM   #3
skillcoyne
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Original Poster
Rep: Reputation: 0
i tried

adding that line in the httpd.conf file but I still get the internal error message. Does it make a difference how deep a subdirectory it is?

htacces file:

AuthName /misc/secure/my.htpasswd
AuthGroupFile /dev/null
AuthName "Member Files"
AuthType Basic


<Limit GET>
require valid-user
</Limit>
 
Old 04-02-2003, 03:42 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I think you just made a typo on the first line. You also don't need a group file if you aren't using one.
Code:
AuthUserFile /misc/secure/my.htpasswd
AuthName "Member Files"
AuthType Basic

<Limit GET>
require valid-user
</Limit>
I forgot to say that you will also need to restart apache after moding the config.
/etc/init.d/httpd restart

It doesn't matter about the depth down he directory structure - apache will inherit permissions from the parent directory.
 
Old 04-02-2003, 03:46 PM   #5
skillcoyne
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Original Poster
Rep: Reputation: 0
I should have known it'd be so simple! Thanks David!!
 
  


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
.htaccess Help GUIPenguin Linux - Security 6 02-22-2005 02:25 PM
.htaccess luca2005 Linux - Software 2 01-01-2005 07:38 PM
.htaccess kidestranged Linux - General 1 01-26-2004 10:18 AM
Htaccess DoobyWho Linux - General 4 04-28-2003 01:01 PM
.htaccess bretthoward Linux - Security 5 04-02-2001 03:33 PM

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

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