diff options
Diffstat (limited to 'htaccess-sample')
-rw-r--r-- | htaccess-sample | 15 |
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 | ||
2 | DirectoryIndex login.html | ||
3 | |||
4 | AuthType Basic | ||
5 | AuthName "Password Protected Area" | ||
6 | AuthUserFile .htusers | ||
7 | Require valid-user | ||
8 | |||
9 | # allow only the root directory (=login.html, see above) to be shown... | ||
10 | SetEnvIf Request_URI ^/$ noauth=1 | ||
11 | Satisfy any | ||
12 | order deny,allow | ||
13 | deny from all | ||
14 | Allow from env=noauth | ||
15 | |||