aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar TOW 2019-03-30 23:34:13 -0300
committerLibravatar TOW 2019-03-30 23:34:13 -0300
commit7a28fa5875bec5dcb6736fb58d95b939e85f0e5e (patch)
tree22af3d5564ac9b2057c83952bfec5a5088b6565f
parented6e405f8845b810daf442668ba6aca56057bb94 (diff)
downloadweabot-7a28fa5875bec5dcb6736fb58d95b939e85f0e5e.tar.gz
weabot-7a28fa5875bec5dcb6736fb58d95b939e85f0e5e.tar.xz
weabot-7a28fa5875bec5dcb6736fb58d95b939e85f0e5e.zip
Forzando el uso de Python2 y CGI regular
-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