- or download this
AuthType Basic
AuthName "Password Required"
AuthUserFile /usr/local/password/passwd.file
Require user <username>
- or download this
htpasswd -c /usr/local/password/passwd.file <username>
- or download this
<virtualHost>
ServerName www.xyz.com
DocumentRoot <root-Dir>
AccessFileName .htaccess_www.xyz.com
</virtualHost>