Alister West

home is where your code is ...

Apache BasicAuth and IP restriction matching.

Use the apache config option "Satisfy Any": to mix both IP allow and user basic_auth.

# Apache Directory block for restricting access
#   (but not Location blocks)
<Directory /var/home/>
    Satisfy Any

    Order deny,allow
    Deny  from all
    Allow from

    AuthType       Basic
    AuthName       IsProtected
    AuthUserFile   /var/home/.htpasswd
    AuthGroupFile  /dev/null
    require        valid-user
By Alister West