I\'ve got several sites: example.com, example1.com, and example2.com. All of them point to my server\'s /public_html fo
example.com
example1.com
example2.com
/public_html
Apache 2.4 offers a semantic alternative with the If directive:
AuthUserFile /path/to/htpasswd AuthType Basic AuthName "Password Protected" Require valid-user Require all granted