17 lines
467 B
ApacheConf
17 lines
467 B
ApacheConf
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>
|