acberk/trunk/master/cert-utils/webapp/.htaccess - Htaccess File

acberk/trunk/master/cert-utils/webapp/.htaccess

RewriteEngine On

# Require SSL
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=302]

# Block public access to README and other htaccess files
RewriteCond %{REQUEST_FILENAME} ^.*/README$ [OR]
RewriteCond %{REQUEST_FILENAME} ^.*.htaccess$
RewriteRule ^(.*)$ - [L,R=404]

# Authenticate user
AuthType basic
AuthName "OrangeFS Certificate Downloads"
AuthBasicProvider file
AuthUserFile /path/to/passwd/file/.htpasswd
Require valid-user

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, HTTPS, REQUEST_FILENAME, REQUEST_URI

Comments

Apache