aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
Diffstat (limited to 'cgi')
-rw-r--r--cgi/.htaccess3
-rwxr-xr-xcgi/weabot.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/cgi/.htaccess b/cgi/.htaccess
index 97a4f17..c698f95 100644
--- a/cgi/.htaccess
+++ b/cgi/.htaccess
@@ -1,6 +1,9 @@
AddHandler cgi-script .py
Options +ExecCGI
+# Force regular CGI (non-FastCGI)
+SetEnv FCGI_FORCE_CGI Y
+
# Uncomment if you want pretty URL (ie cgi/post)
#RewriteEngine On
#RewriteBase /cgi/
diff --git a/cgi/weabot.py b/cgi/weabot.py
index 3bcef7b..c38a972 100755
--- a/cgi/weabot.py
+++ b/cgi/weabot.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
# coding=utf-8
# Remove the first line to use the env command to locate python