ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
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


1 to 1 of 1
  1. Problems creating my own .htaccess
    2003-05-20 00:12:08  anonymous2 [View]

1 to 1 of 1