htaccess and htpasswd
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hello Everyone,
On my website, I have content served off webroot.
site1.example.com
site2.example.com
site3.example.com
All point to the same doc root.
I want to passwd protect site1.example.com but not the others (but they are served off the same directory)
How can I do that using apache?
The following .htaccess file will passwd protect all the 3 sites since they are from the same doc root.
AuthUserFile /usr/local/web/data/users/unh/zap/pro/.htpasswd
AuthGroupFile /dev/null
AuthName AllowLocalAccess
AuthType Basic
require valid-user
Thanks,
Mandy.
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]