Htaccess File


# This config is used for Dreamhost which HTTP basic authoriztion is forbidden.
# The PHP Server variable 'PHP_AUTH_USER' & 'PHP_AUTH_PW' could be implement by
# this config via a CGI environment variable.
# From [HTTP Authentication on PHP as CGI (like Dreamhost)](

RewriteEngine on
RewriteBase /
RewriteRule ^git-hook.php - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

<Limit GET>
       AuthType Basic
       AuthName "Restricted Files"

       # EDIT ME
       AuthUserFile "/var/www/.htpasswd"

       Require valid-user
       Order deny,allow
       Deny from all
       Allow from      # ALLOW FROM localhost
       Satisfy Any
Exit mobile version