morss/www/.htaccess

18 lines
320 B
ApacheConf
Raw Permalink Normal View History

Options -Indexes
ErrorDocument 403 "Access forbidden"
2015-04-07 01:36:00 +00:00
ErrorDocument 404 /cgi/main.py
ErrorDocument 500 "A very nasty bug found his way onto this very server"
Order Deny,Allow
<Files ~ "\.(py|pyc|db|log)$">
deny from all
</Files>
<Files main.py>
allow from all
AddHandler cgi-script .py
Options +ExecCGI
</Files>