<HTML><HEAD>
<META content="text/html; charset=iso-8859-15" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928"></HEAD>
<BODY style="MARGIN: 4px 4px 1px">
<DIV>Hi SeeJay</DIV>
<DIV>&nbsp;</DIV>
<DIV>Try:</DIV>
<DIV>&nbsp;</DIV>
<DIV>#!C:/Python27/python.exe -u</DIV>
<DIV>&nbsp;</DIV>
<DIV>as the first line of proxy.cgi (note the forward slashes).</DIV>
<DIV>&nbsp;</DIV>
<DIV>Robert<BR><BR>&gt;&gt;&gt; SeeJay &lt;hendrix.cj@gmail.com&gt; 23/08/2011 7:16 a.m. &gt;&gt;&gt;<BR>I've read through several other posts on this topic, but haven't been able to<BR>resolve my problem.&nbsp; <BR><BR>I'm running OL 2.11rc1 on Win7 64bit with Apache 2.2.19 and Python 2.7.<BR><BR>I'm using the standard proxy.cgi from<BR><A href="http://trac.osgeo.org/openlayers/browser/trunk/openlayers/examples/proxy.cgi.">http://trac.osgeo.org/openlayers/browser/trunk/openlayers/examples/proxy.cgi.</A>&nbsp; <BR><BR>I'm calling it from my javascript using<BR><BR>OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";<BR><BR>It returns "500 Internal Server Error".&nbsp; <BR><BR>I have confirmed that python files with the .cgi extension will run: a<BR>test.cgi script in the cgi-bin folder will execute from the command line.&nbsp; <BR><BR>I have changed the first line of the proxy.cgi file from <BR>#!/usr/bin/env python<BR>to<BR>#!C:\Python27\python<BR><BR>I've tried disabling Kaspersky.<BR><BR>I'm not sure what else to try.&nbsp; Ideas?&nbsp; <BR><BR>Thanks in advance.<BR><BR>--<BR>View this message in context: <A href="http://osgeo">http://osgeo</A>-org.1803224.n2.nabble.com/Proxy-cgi-not-working-tp6712895p6712895.html<BR>Sent from the OpenLayers Users mailing list archive at Nabble.com.<BR>_______________________________________________<BR>Users mailing list<BR>Users@lists.osgeo.org<BR><A href="http://lists.osgeo.org/mailman/listinfo/openlayers">http://lists.osgeo.org/mailman/listinfo/openlayers</A>-users<BR></DIV><br><br>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system.</FONT></P>

<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This message has been scanned for Malware and Viruses by Websense Hosted Security.  </FONT><A href="http://www.websense.com/"><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>www.websense.com</FONT></A></P>
</body></HTML>