httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 57400] New: apache cgi-bin python script
Date Mon, 29 Dec 2014 07:13:59 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=57400

            Bug ID: 57400
           Summary: apache cgi-bin python script
           Product: Apache httpd-2
           Version: 2.0.32
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All
          Assignee: bugs@httpd.apache.org
          Reporter: simeon@wysine.com

I am trying to execute python script by using Javascript http 'get' method.
python script is hosted in apache2(/var/www/cgi-bin/) (on Raspberry Pi - Noobs
OS) .

but it returns content of the .py script. I want to execute(run) this script.
please support.

**************My python script***************************
#!/usr/bin/python

import time
from time import strftime
import datetime


def main():
print 'Content-type: text-plain\n\n'
today = str(datetime.datetime.today().date())
print today

main()
**********************************************************************

>>>>>>>>>>>>>>>>Apache config>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

<VirtualHost 192.168.1.13:8001>
ServerAdmin webmaster@localhost

DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /var/www/cgi-bin/
<Directory "/var/www/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AddHandler cgi-script .cgi .py .pl
Order allow,deny
Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
..........................>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message