title: .htpasswd on specific subdomain
body: <p>I have a language specific subdomain that points to the same dir as the root as my site. I use PHP to detect it and show the language. </p>
  
  <p>I wish to set an htpasswd on this subdomain only. Keep in mind that there is no physical directory specific to this subdomain. Therefore the statement will be in the same htaccess as the root of my site. </p>
  
  <p>I need htaccess to do this :</p>
  
  <pre><code>if request is mysubdomain.domain.com
  AuthUserFile /www/.htpasswd
  AuthName "Locked"
  AuthType Basic
  </code></pre>
  
  <p>Thanks</p>