diff options
author | TOW | 2019-03-30 23:34:13 -0300 |
---|---|---|
committer | TOW | 2019-03-30 23:34:13 -0300 |
commit | 7a28fa5875bec5dcb6736fb58d95b939e85f0e5e (patch) | |
tree | 22af3d5564ac9b2057c83952bfec5a5088b6565f /cgi | |
parent | ed6e405f8845b810daf442668ba6aca56057bb94 (diff) | |
download | weabot-7a28fa5875bec5dcb6736fb58d95b939e85f0e5e.tar.gz weabot-7a28fa5875bec5dcb6736fb58d95b939e85f0e5e.tar.xz weabot-7a28fa5875bec5dcb6736fb58d95b939e85f0e5e.zip |
Forzando el uso de Python2 y CGI regular
Diffstat (limited to 'cgi')
-rw-r--r-- | cgi/.htaccess | 3 | ||||
-rwxr-xr-x | cgi/weabot.py | 2 |
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 |