diff options
author | Max Christian Pohle | 2016-10-15 19:20:18 +0200 |
---|---|---|
committer | Max Christian Pohle | 2016-10-15 19:20:18 +0200 |
commit | 87c69016c5e7458df84950ae4eb0b5833262a370 (patch) | |
tree | 13764a5364953fb1973db3abc1446cb177f17ab5 /htaccess-sample | |
download | auth-form-alt-87c69016c5e7458df84950ae4eb0b5833262a370.tar.bz2 auth-form-alt-87c69016c5e7458df84950ae4eb0b5833262a370.zip |
It basically works
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 | |||