[X-Unix] Beginner: htpasswd for Webserver & user Site?
dm87 at proparallax.com
dm87 at proparallax.com
Sat May 14 12:24:56 PDT 2005
>On May 14, 2005, at 12:59 PM, dm87 at proparallax.com wrote:
>
>>I have successfully protected my /Library/WebServer directory using
>>.htaccess and .htpasswd, by following the instructions found here:
>><http://www.macosx.com/forums/showthread.php?s=&threadid=12005>
>>
>>I also want to protect the "Site" folder, found in my "Users"
>>account, using .htaccess and .htpasswd. Can this be done and if so
>>how would I go about doing it?
>
>Donna,
>
>Where are you looking for support? Did you google this, have you
>tried applying the same technique as you did with the other
>directories? What software are you using for your webserver?
>
>Answering these questions for the list will better help us answer
>your questions.
>/rant
>_______________________________________________________
>Eric F Crist "I am so smart, S.M.R.T!"
>Secure Computing Networks -Homer J Simpson
>
OSX 10.3.9 Panther / default shell
Default Apache version
Terminal
Personal Web Sharing enabled
Firewall open to port 80 for my IP only
I did attempt to duplicate the process that worked for
Library/WebServer, and could not get it to work.
I used terminal to navigate to my User/Sites directory and pico to
create a .htpasswd file, by typing:
sudo htpasswd -c .htpasswd username
I ended up with a .htpasswd file in my Sites directory.
I then used terminal to navigate to my User/Sites directory and pico
to create a .htaccess file containing:
AuthUserFile /private/etc/httpd/.htpasswd
AuthGroupFile /dev/null
AuthName "Members Only"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
Then, still working with Terminal in the User/Site directory, I typed in:
sudo apachectl restart
What I now have is:
1) .htaccess and .htpasswd file in Library/WebServer that work.
2) .htaccess and .htpasswd file in Users/Sites that do not work.
I have been looking around with google for several hours, visiting
dozens of sites and I think I may be using poor search words because
of my limited knowledge as a beginner, or perhaps unfamiliar
terminology is used to describe what I am looking for and I haven't
recognized the solution.
Thanks
Donna dm87
More information about the X-Unix
mailing list