Hi Imran/All,<br><br>Thanks for your response, <br><br>Just for your more clarity, I have a setup like this:<br>
<br>internal ip1 --- geoserver running<br>
i am behind a proxy .. at proxy server apache is running at proxy
server i have added reverse proxy for geoserver <br><br><a href="http://mydomain.com/geoserver" target="_blank">http://mydomain.com/geoserver</a> internal ip1 <br><br>
WMS request for geoserver inside the proxy is working fine but whenever i query for getfeature info it is not giving the result .....<br>i.e. the request <a href="http://www.someDomain.com/geoserver">www.someDomain.com/geoserver</a> is displaying the map from inside the proxy but not giving the feature info on clicking . ALso it is not showing any error in firefox error console ..<br>
>From certain forum I got to know that we should add PROXY_BASE_URL in our web.xml ... I tried adding it but still no result..<br><br>Also I have another problem ....when i open www,.<a href="http://somedomain.com/geoserver">somedomain.com/geoserver</a> from outside the proxy ... the WMS request also stops working... <br>
<br>So in this case, are they 2 from different domains?<br>Will json be helpfull in this case?<br><br>Regards,<br>M. Rizwan Khan<br><br><div class="gmail_quote">On Thu, Jul 22, 2010 at 3:12 PM, Imran Rajjad <span dir="ltr"><<a href="mailto:rajjad@gmail.com">rajjad@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi.<br>
Is geoserver and your webpage in different domains? if Yes? then are<br>
you request wfs response in XML format (e.g) GML, if Yes? then it will<br>
not work because XML data can only be retreived through same domanin.<br>
This is called SOP , same origin policy that all browsers follow, if<br>
your page came from <a href="http://www.abc.com" target="_blank">www.abc.com</a> it cannot post xmlhttp request to<br>
<a href="http://www.xyz.com" target="_blank">www.xyz.com</a> .. in your case you should use JSON<br>
<br>
regards,<br>
Imran<br>
<div><div></div><div class="h5"><br>
On Thu, Jul 22, 2010 at 2:24 PM, M. Rizwan Khan <<a href="mailto:mrizwan1.khan@gmail.com">mrizwan1.khan@gmail.com</a>> wrote:<br>
> Hi All,<br>
><br>
> I am using Geoserver and openlayers for visualizing, when i am accessing it<br>
> with IP Address (<a href="http://192.168.1.45:18080/......." target="_blank">http://192.168.1.45:18080/.......</a>.) it is working fine, but<br>
> if a view any layer using the Domain (<a href="http://www.some-name.com/......." target="_blank">http://www.some-name.com/.......</a>.)<br>
> name i am unable to view the info of the features when clicked on it.<br>
> I could see the Map in both the case, just the problem is of the response of<br>
> GetFeatureInfo.<br>
> Could anyone help me out with this.<br>
><br>
> Regards,<br>
> M. Rizwan Khan<br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
> <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
<font color="#888888">I.R<br>
</font></blockquote></div><br>