I was able to figure out where I was wrong. I was meant to add the url or the domain name in the /usr/lib/cgi-bin/proxy.cgi not the one that I was keeping locally in my dir.<div><br></div><div>Thanks<br><br><div class="gmail_quote">
On Wed, Oct 24, 2012 at 2:48 PM, Smaran Harihar <span dir="ltr"><<a href="mailto:smaran.harihar@gmail.com" target="_blank">smaran.harihar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Guys,<div><br></div><div>I moved my project to a new system and I am getting a 502 Bad Gateway for all the XMLHttpRequest. I made the following changes,</div><div><br></div><div>I added the proxy.cgi allowedHosts = [url]. I have also changed the default file in the apache2 and added the server name as the new domain name.</div>
<div><br></div><div>Rest of the code is absolutely the same but I am not able to receive any of the response from the ajax request. The reason I say not able to receive is because I am able to send the request to my py script, as I can see the JSON when I place this <a href="http://128.196.142.55:9000/info?lat=38.548166617395786&lon=-103.53515625000308" target="_blank">link</a> in the browser.</div>
<div><br></div><div>Any ides where I am going wrong?<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br>Thanks & Regards<div>Smaran Harihar</div><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Thanks & Regards<div>Smaran Harihar</div><br>
</div>