From 87c69016c5e7458df84950ae4eb0b5833262a370 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sat, 15 Oct 2016 19:20:18 +0200 Subject: Initial version It basically works --- htaccess-sample | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 htaccess-sample (limited to 'htaccess-sample') diff --git a/htaccess-sample b/htaccess-sample new file mode 100644 index 0000000..dabf6a9 --- /dev/null +++ b/htaccess-sample @@ -0,0 +1,15 @@ +# this file must be named .htaccess +DirectoryIndex login.html + +AuthType Basic +AuthName "Password Protected Area" +AuthUserFile .htusers +Require valid-user + +# allow only the root directory (=login.html, see above) to be shown... +SetEnvIf Request_URI ^/$ noauth=1 +Satisfy any +order deny,allow +deny from all +Allow from env=noauth + -- cgit v1.2.3