Article:
 |
|
Apache Web-Serving with Mac OS X, Part 4
|
| Subject: |
|
Problems creating my own .htaccess |
| Date: |
|
2003-05-18 12:08:42 |
| From: |
|
mymacworld
|
|
|
|
Hello Everyone:
I am really lost here. I am not the brightest person but I will try to explain my situation.
I have a directory called "test" within my /Library/WebServer/Documents directory that I would like to protect. I cd'd to my "test" directory and created my .htaccess file which consists of the following:
AuthName "REALM of MyMACwold"
AuthType Basic
AuthUserFile /Library/WebServer/.htpasswd
require valid-user
I then typed "htpasswd -c /Library/WebServer/.htpasswd test and got
New password:
Re-type new password:
Adding password for user test
password is test and username is test. When I go to the website, I don't get a password box prompting me for the username and password. I don't understand what I did wrong? Any help would greatly be appreciated. Thank you.
Mark
|
Showing messages 1 through 1 of 1.
-
Problems creating my own .htaccess
2003-05-20 00:12:08
anonymous2
[View]
http://www.macosxhints.com/article.php?story=20010422202915223&query=htaccess
Good luck