LinuxQuestions.org
Review your favorite Linux distribution.
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-15-2003, 08:30 AM   #1
DoobyWho
Member
 
Registered: Feb 2003
Posts: 50

Rep: Reputation: 15
Htaccess


I've got apache running and webmin, whats the easiest way to password protect a directory now? I dont know how to use .htaccess
 
Old 04-15-2003, 08:39 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 261Reputation: 261Reputation: 261
This is asked all the time with many replies on how to setup htaccess and with great links to great documentation to setup.

The docs at www.apache.org have very easy and detailed instructions on how to set this up:

For 2.0 - http://httpd.apache.org/docs-2.0/howto/htaccess.html

For 1.3 - http://httpd.apache.org/docs/howto/htaccess.html
 
Old 04-16-2003, 09:11 AM   #3
DoobyWho
Member
 
Registered: Feb 2003
Posts: 50

Original Poster
Rep: Reputation: 15
Okay i did that. Now whenever I access the page it asks for the username/password and the Realm is set correctly and all, but yet when i put the pw in it just keeps asking for it over and over until a few times then it shows me a page saying im not authorized. i set the pw file up right.
 
Old 04-16-2003, 10:12 AM   #4
DoobyWho
Member
 
Registered: Feb 2003
Posts: 50

Original Poster
Rep: Reputation: 15
it gives me :

Authentication required!
This server could not verify that you are authorized to access the URL "/". You either supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
In case you are allowed to request the document, please check your user-id and password and try again.
If you think this is a server error, please contact the webmaster
Error 401
jungle.ideawire.net
Wed 16 Apr 2003 10:12:31 AM CDT
Apache/2.0.40 (Red Hat Linux)
 
Old 04-28-2003, 01:01 PM   #5
sschueller
LQ Newbie
 
Registered: Feb 2003
Posts: 7

Rep: Reputation: 0
make sure the password file is readable by apache. I created mine using root and only root was able to read it!

-Stefan
 
  


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 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 raek Linux - Newbie 1 08-17-2002 11:53 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 01:27 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