Dental Articles - Edmonton
Authentication with .htpasswd On Mac OS X
Posted by negraru on Mon, 1 Jun 2015
Authentication with .htpasswd On Mac OS X
$ htpasswd -c /www/domain.com/.htpasswd yourusernameAfter running the command it will ask for your password.
Create a .htaccess file at the directory you want to protect, suppose /www/domain.com/.htaccess. With the following lines:
AuthName "Login" AuthUserFile /www/domain.com/.htpasswd AuthGroupFile /dev/null AuthType Basic < LIMIT GET POST > require valid-user < /LIMIT >Now save .htaccess and try running the page, that's it!
Designer Edmonton