.htaccess protection on folder for specific domain, multi-domain-sites

10. April 2014

##########################################################################
# Password-protection for domain-b.tld --> domain-a.tld is still available
SetEnvIfNoCase Host ^www\.domain-b\.tld$ SECURED=yes
AuthType Basic
AuthName "Restricted area of domain-b.tld"
AuthUserFile /var/www/vhosts/www.domain-b.tld/.htpasswd
Require valid-user
Satisfy any
Order allow,deny
Allow from all
Deny from env=SECURED
##########################################################################

Hinterlasse einen Kommentar

You must be logged in to post a comment.

Theme von BenediktRB • Powered by Wordpress • Abonniere den RSS Feed