Htaccess File

uw-madison-show/data-dissemination-portal/master/data/codebooks/.htaccess

## todo make this test/production ready

## 
## SetEnvIf Host staging.domain.com passreq
## AuthType Basic
## AuthName "Password Required"
## AuthUserFile /full/path/to/.htpasswd
## Require valid-user
## Order allow,deny
## Allow from all
## Deny from env=passreq
## Satisfy any
## 

AuthType Basic
AuthName "Codebooks"
AuthUserFile "/var/www/vhosts/wwwtest.show.wisc.edu/httpdocs/data/codebooks/.htpasswd"
Require valid-user

RewriteEngine On

ErrorDocument 401 /data/registration.php
Exit mobile version