summaryrefslogtreecommitdiff
path: root/htaccess-sample
blob: dabf6a9bb94ef809b3024a05f332e3e8a7154b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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

..