1 Mac OS X - System Preferences -> Sharing -> Service -> Personal web sharing
2 $ htpasswd -c /Users/USER NAME/webpasswords INITIAL USERNAME
( ex. $ htpasswd -c /Users/nikki/webpasswords nikki)
3 htpasswd -b /Users/USER NAME/webpasswords INITIAL USERNAME PASSWORD
4 in /etc/httpd/users/username.conf
<Directory "/Users/jray/Sites/">
AuthType Basic
AuthName "John's Development Site"
AuthUserFile /Users/jray/webpasswords
Require valid-user
Options Indexes MultiViews ExecCGI
AllowOverride None
Order allow,deny
Allow from all
<Directory>
5 $ sudo /usr/sbin/apachectl restart
Mac OS X Tiger unleashed, SAMS P.1174
No comments:
Post a Comment