title: Whitelisting IPs with .htaccess / .htpasswd
body: <p>Using the following <code>.htaccess</code>, I am able to successfully limit access to users with the correct username/password and users from a specific IP address:</p>
  
  <pre><code>AuthType Basic
  AuthName "Please enter your password"
  AuthUserFile /path/to/.htpasswd
  
  Require valid-user
  Order deny,allow
  Deny from all
  
  Allow from 123.123.123.123
  Satisfy Any
  </code></pre>
  
  <p>This works on a number of different servers, however, today I came across a server where this <em>doesn't</em> work 100%.  Users with the correct username/password <em>can</em> login, but users from the specified IP <em>are not</em> allowed and are forced to enter a password.</p>
  
  <p>Is there something in <code>httpd.conf</code> that might be preventing the IP whitelist from working?  I've tried a number of variations and continue to get the same result.  All servers are Apache on Linux.</p>