summaryrefslogtreecommitdiff
path: root/htaccess-sample
diff options
context:
space:
mode:
Diffstat (limited to 'htaccess-sample')
-rw-r--r--htaccess-sample15
1 files changed, 15 insertions, 0 deletions
diff --git a/htaccess-sample b/htaccess-sample
new file mode 100644
index 0000000..dabf6a9
--- /dev/null
+++ b/htaccess-sample
@@ -0,0 +1,15 @@
1# this file must be named .htaccess
2DirectoryIndex login.html
3
4AuthType Basic
5AuthName "Password Protected Area"
6AuthUserFile .htusers
7Require valid-user
8
9# allow only the root directory (=login.html, see above) to be shown...
10SetEnvIf Request_URI ^/$ noauth=1
11Satisfy any
12order deny,allow
13deny from all
14Allow from env=noauth
15
..