<div dir="ltr"><div>Hi,<br><br></div>This is what I got with error.log file:<br><div><br>SyntaxError: invalid syntax\r, referer: <a href="http://localhost/temp/temp.html">http://localhost/temp/temp.html</a><br>Premature end of script headers: proxy.cgi, referer: <a href="http://localhost/temp/temp.html">http://localhost/temp/temp.html</a><br>
File "C:/Server/Apache22/htdocs/temp/proxy.cgi", line 45\r, referer: <a href="http://localhost/temp/temp.html">http://localhost/temp/temp.html</a><br>print "Status: 502 Bad Gateway"\r, referer: <a href="http://localhost/temp/temp.html">http://localhost/temp/temp.html</a><br>
                             ^\r, referer: <a href="http://localhost/temp/temp.html">http://localhost/temp/temp.html</a><br>SyntaxError: invalid syntax\r, referer: <a href="http://localhost/temp/temp.html">http://localhost/temp/temp.html</a><br>
<br></div><div>Thanks,<br></div><div>Nipuni<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 5, 2013 at 10:30 AM, Raffaele Morelli <span dir="ltr"><<a href="mailto:raffaele.morelli@gmail.com" target="_blank">raffaele.morelli@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2013/6/5 Nipuni Perera <span dir="ltr"><<a href="mailto:nipuni880917@gmail.com" target="_blank">nipuni880917@gmail.com</a>></span><br>
<div class="gmail_quote"><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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</div></div></blockquote><div><br></div></div></div><div>You should have a look at apache error log, it's clearly a misconfiguration in apache (error 500) and what you need for debug is there.</div>
<div>
I would suggest to check directory and/or file permissions (ie. virtual host configuration directives).</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>/r</div></font></span></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<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>