businesscards/htdocs/.htaccess

17 lines
467 B
ApacheConf
Raw Permalink Normal View History

2014-04-18 23:34:12 +04:00
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>