I have standard 13.10 Ubuntu. Running Apache 2 and mod_python. Both installed using apt-get. I'm trying to pass a GET variable from the client to the server, execute python script and then return a result.
Here is my ApacheConfig (Default plus code below):
ScriptAlias /tm/ "/home/tm/"
<Directory /home/tm/ >
Require all granted
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On
</Directory>
Python Code: test.py
import csv
def index():
form = cgi.FieldStorage()
return form
I tried http://myWebsite.com/tm/test.py?testVariable=This
returns: FieldStorage(None, None, []) - Meaning the GET variables are not being passed over.