klokie/bitbucket-post-hook-deployment/master/.htaccess - Htaccess File

klokie/bitbucket-post-hook-deployment/master/.htaccess

# 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)](http://planetozh.com/blog/2009/04/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 127.0.0.1      # ALLOW FROM localhost
       Satisfy Any
</Limit>

On Github License

Files

Download PDF of Htaccess file

Comments

Apache