<div>Hi guys,</div><div><br></div><div>I am trying to access the featureInfo in my application and I keep getting 502 Bad Gateway Network error. In teh console log under the response tab I am getting this error,</div><div>

<br></div><div>    This proxy does not allow you to access that location (<a href="http://castle.iplantcollaborative.org:8080">castle.iplantcollaborative.org:8080</a>).</div><div><br></div><div>The GET param is,</div><div>

<br></div><div>    <a href="http://castle.iplantcollaborative.org:8080/geoserver/wms/?LAYERS=opengeo%3APimaPine,opengeo%3ABIEN_Species_Richness_Margalef,opengeo%3ABIEN_Species_Richness,opengeo%3ABIEN_Species_Richness_Margalef_Interpolated&QUERY_LAYERS=opengeo%3APimaPine,opengeo%3ABIEN_Species_Richness_Margalef,opengeo%3ABIEN_Species_Richness,opengeo%3ABIEN_Species_Richness_Margalef_Interpolated&STYLES=,,,&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-18295967.087793%2C-10684061.894102%2C18295967.087793%2C10684062.234102&FEATURE_COUNT=10&HEIGHT=546&WIDTH=935&FORMAT=image%2Fpng&INFO_FORMAT=application%2Fvnd.ogc.gml&SRS=EPSG%3A900913&X=174&Y=140">http://castle.iplantcollaborative.org:8080/geoserver/wms/?LAYERS=opengeo%3APimaPine,opengeo%3ABIEN_Species_Richness_Margalef,opengeo%3ABIEN_Species_Richness,opengeo%3ABIEN_Species_Richness_Margalef_Interpolated&QUERY_LAYERS=opengeo%3APimaPine,opengeo%3ABIEN_Species_Richness_Margalef,opengeo%3ABIEN_Species_Richness,opengeo%3ABIEN_Species_Richness_Margalef_Interpolated&STYLES=,,,&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-18295967.087793%2C-10684061.894102%2C18295967.087793%2C10684062.234102&FEATURE_COUNT=10&HEIGHT=546&WIDTH=935&FORMAT=image%2Fpng&INFO_FORMAT=application%2Fvnd.ogc.gml&SRS=EPSG%3A900913&X=174&Y=140</a></div>

<div><br></div><div>My `/usr/lib/cgi-bin/proxy.cgi` has the domain's url added to it's allowed hosts. The apache error.log file was giving this error,</div><div><br></div><div>    Permission denied: exec of '/usr/lib/cgi-bin/proxy.cgi' failed</div>

<div><br></div><div>But when I changed the `chmod` for the proxy.cgi file to `root:root` it is not giving that error but it continues to give 502 Bad Gateway. I know I need to make some changes somewhere in the user permissions but not sure where?</div>

<div><br></div><div>Any idea what I should correct?</div><div><br></div>-- <br>Thanks & Regards<div>Smaran Harihar</div><br>