<div dir="ltr"><div><div><div><div>Hi,<br><br></div>Yes I have Python installed and the first line of the proxy.cgi is <br><br>#!C:/Python33/python.exe -u<br><br></div>which points to the python.exe location.<br></div><div>

I have set the changes to httpd.conf file as described <a href="http://vijaysambhe.wordpress.com/2012/10/12/openlayers-cross-domain-configure-proxyhost-on-windows/" target="_blank">here</a>. <br>
</div><div><br></div>I have reinstalled Python and the response change from the script to an error message. This is the response I received for the POST request:<br></div><div><br><pre><code><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
</code><code><html><head>
</code><code><title>500 Internal Server Error</title>
</code><code></head><body>
</code><code><h1>Internal Server Error</h1>
</code><code><p>The server encountered an internal error or
</code><code>misconfiguration and was unable to complete
</code><code>your request.</p>
</code><code><p>Please contact the server administrator,
</code><code> <a href="mailto:admin@example.com" target="_blank">admin@example.com</a> and inform them of the time the error occurred,
</code><code>and anything you might have done that may have
</code><code>caused the error.</p>
</code><code><p>More information about this error may be available
</code><code>in the server error log.</p>
</code><code></body></html><br><br></code></pre><pre><font><span style="font-family:arial,helvetica,sans-serif"><br>This is the same error message I get when I try to open the proxy.cgi from localhost. </span></font></pre>

Thanks,<br></div><div>Nipuni<br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 5, 2013 at 3:33 AM, Robert Sanson <span dir="ltr"><<a href="mailto:Robert.Sanson@asurequality.com" target="_blank">Robert.Sanson@asurequality.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Do you have Python installed? Is the first line of the proxy.cgi script pointing to the correct location of your Python installation?<br>

<br>
Regards,<br>
<br>
Robert<br>
<div><div class="h5"><br>
<br>
From: <a href="mailto:openlayers-users-bounces@lists.osgeo.org">openlayers-users-bounces@lists.osgeo.org</a><br>
[mailto:<a href="mailto:openlayers-users-bounces@lists.osgeo.org">openlayers-users-bounces@lists.osgeo.org</a>] On Behalf Of Nipuni Perera<br>
Sent: Tuesday, June 04, 2013 2:13 PM<br>
To: <a href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a><br>
Subject: [OpenLayers-Users] WFS layer not visible<br>
<br>
<br>
<br>
Hi,<br>
<br>
I am trying to display a simple WFS layer. This is my code for setting up<br>
WFS layer.<br>
<br>
 var layer = new OpenLayers.Layer.Vector("WFS", {<br>
                strategies: [new OpenLayers.Strategy.BBOX()],<br>
                protocol: new OpenLayers.Protocol.WFS({<br>
                    version: "1.1.0",<br>
                    url:  "<a href="http://demo.opengeo.org/geoserver/wfs" target="_blank">http://demo.opengeo.org/geoserver/wfs</a>",<br>
                    featureType: "tasmania_roads",<br>
                    featureNS: "<a href="http://www.openplans.org/topp" target="_blank">http://www.openplans.org/topp</a>",<br>
                    geometryName: "the_geom"<br>
                })<br>
            });<br>
<br>
I have set up the proxyHost variable as follows and added '<a href="http://demo.opengeo.org" target="_blank">demo.opengeo.org</a>'<br>
and  '<a href="http://www.openplans.org" target="_blank">www.openplans.org</a>' to my proxy.cgi script.<br>
<br>
OpenLayers.ProxyHost= "proxy.cgi?url=";<br>
<br>
This does not show the required WFS features on the map. When I check it<br>
with firebug, I can see the POST request and it gives the response similar<br>
to the proxy.cgi script file, instead of an XML response.<br>
<br>
Thanks,<br>
<br>
Nipuni<br>
<br>
<br>
--<br>
<br>
Nipuni Piyabasi Perera<br>
<br>
Undergraduate<br>
<br>
Department of Computer Science And Engineering<br>
<br>
University of Moratuwa<br>
<br>
Sri Lanka<br>
<br>
<br>
<br>
<br>
</div></div>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.<br>
<br>
This message has been scanned for Malware and Viruses by Websense Hosted Security.<br>
<a href="http://www.websense.com" target="_blank">www.websense.com</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div><span>Nipuni Piyabasi Perera</span></div><span>Undergraduate</span><div>Department of Computer Science And Engineering</div><div>University of Moratuwa<div>Sri Lanka</div>
</div>
</div>