From 4b8e3d1b8b7899f65b75af05dd37f00e8ca52699 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sat, 4 Mar 2017 19:30:30 -1000 Subject: [PATCH] Improve provided .htaccess Should be less unsafe... --- www/.htaccess | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/www/.htaccess b/www/.htaccess index 9d04495..df53ef3 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -1,5 +1,17 @@ -AddHandler cgi-script .py -Options +ExecCGI +Options -Indexes +ErrorDocument 403 "Access forbidden" ErrorDocument 404 /cgi/main.py ErrorDocument 500 "A very nasty bug found his way onto this very server" + +Order Deny,Allow + + + deny from all + + + + allow from all + AddHandler cgi-script .py + Options +ExecCGI +