LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Htaccess (https://www.linuxquestions.org/questions/linux-general-1/htaccess-55127/)

DoobyWho 04-15-2003 08:30 AM

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

trickykid 04-15-2003 08:39 AM

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

DoobyWho 04-16-2003 09:11 AM

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.

DoobyWho 04-16-2003 10:12 AM

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)

sschueller 04-28-2003 01:01 PM

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

-Stefan


All times are GMT -5. The time now is 12:17 PM.