You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

16 lines
467 B

AuthType Basic
AuthName "Restricted Access"
AuthUserFile /path/to/file/with/passwords
Require valid-user
AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On
#<LocationMatch "^/+$">
Options -Indexes
RedirectMatch "^/+$" /index.py/view
RedirectMatch "^/index.py+$" /index.py/view
RedirectMatch "^/imp+$" /index.py/imp
RedirectMatch "^/view+$" /index.py/view
RedirectMatch "^/delete+$" /index.py/delete
#</LocationMatch>