add basic auth to password-protect the page until publication

lektura
max.mehl 2017-06-19 23:18:10 +02:00
parent 22d3f5710c
commit 6bf3b4c920
2 changed files with 8 additions and 0 deletions

View File

@ -1,7 +1,14 @@
RewriteEngine On
RewriteBase /
# Redirect 404 errors to nice page
ErrorDocument 404 /404.html
# Nicer URL for share buttons
RewriteRule ^share/?$ /cgi/share.php [NC,L]
# Password-protect the site until it's released
AuthType Basic
AuthName "This website will be released soon. Please follow our news on fsfe.org to stay updated."
AuthUserFile /usr/share/blog/public/.htpasswd
Require valid-user

View File

@ -0,0 +1 @@
pmpc:$apr1$e.WcM84k$NYeWE2apCKXWz4Og1QOwC/