summaryrefslogtreecommitdiff
path: root/htaccess-sample
diff options
context:
space:
mode:
authorMax Christian Pohle2016-10-15 19:20:18 +0200
committerMax Christian Pohle2016-10-15 19:20:18 +0200
commit87c69016c5e7458df84950ae4eb0b5833262a370 (patch)
tree13764a5364953fb1973db3abc1446cb177f17ab5 /htaccess-sample
downloadauth-form-alt-master.tar.bz2
auth-form-alt-master.zip
Initial versionHEADmaster
It basically works
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
..