You can use SetEnvIf
along with the Satisfy Any
in mod_authz:
SetEnvIfNoCase HOST ^www\.example2014\.com(:80)?$ PROTECTED_HOST
AuthUserFile /var/www/htpasswd
AuthName "Password Protected"
AuthType Basic
Order Deny,Allow
Satisfy any
Deny from all
Require valid-user
Allow from env=!PROTECTED_HOST
This sets an environment variable "PROTECTED_HOST" if the requested host is www.example2014.com
and the auth setup allows all requests to bypass password protecting if the "PROTECTED_HOST" is not set