And if you proxy you should probably set:
Settings:Global "Proxy Base URL". So your capabilities documents, etc. reflect the public address. Steve http://www.clemetparks.com/images/esig/cmp-ms-90x122.pngStephen Mather Geographic Information Systems (GIS) Manager (216) 635-3243 [email protected] <http://www.clemetparks.com/> clevelandmetroparks.com From: David Winslow [mailto:[email protected]] Sent: Friday, July 15, 2011 9:29 AM To: Mark Hammond Cc: [email protected] Subject: Re: [Geoserver-users] Accessing WMS featureInfo externally One way to work around this limitation (a security measure in web browsers known as the "same origin policy") is to use an iframe to embed the feature info HTML in your popup. If you want to use more advanced techniques this won't work; you can't (for example) fetch the featureinfo in GML and manipulate it with client-side code this way. If you use those more advanced techniques, you could use an HTTP proxy (apache's mod_proxy will work fine) to make both services appear to be on the same port; just proxy both your local Glassfish and your remote webpage. Check out http://httpd.apache.org/docs/current/mod/mod_proxy.html for details. -- David Winslow OpenGeo - http://opengeo.org/ On Fri, Jul 15, 2011 at 6:31 AM, Mark Hammond <[email protected]> wrote: In simple steps, could someone explain how get access to WMS Feature Info when the webpage is not being hosted on the same server as GeoServer? My code works fine when it's served from the same server, but returns nothing when queried from somewhere else. This makes is a pain when developing with Netbeans and a local Glassfish install when GeoServer is installed elsewhere in the organisation. Mark Hammond ---------------------------------------------------------------------------- -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
<<image001.png>>
------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
