Python Outside cgi-bin

DanielB

New Member
Messages
9
Reaction score
0
Points
0
Is it possible to have python scripts outside the cgi-bin, and still get them to run, much like a php script would?
 

daman371

New Member
Messages
130
Reaction score
0
Points
0
Assuming you have the shebang, #!/usr/bin/python, line at the beginning of your script, you can change the extension of the file to .cgi and use the following in htaccess.

Code:
AddType application/x-httpd-cgi .pl
AddHandler cgi-script .py
 
Top