Imrove provided .htaccess

master
pictuga 2017-07-23 20:22:40 +02:00
parent 3bfad54add
commit 10cbebb80c
2 changed files with 7 additions and 8 deletions

View File

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

View File

@ -0,0 +1,7 @@
deny from all
<Files main.py>
allow from all
AddHandler cgi-script .py
Options +ExecCGI
</Files>