Setting up your own Openlayers Proxyhost

I've seen an example related to WMS Get Feature Info like:

http://openlayers.org/dev/examples/getfeatureinfo-control.html

In this example they use

 OpenLayers.ProxyHost = "proxy.cgi?url=";

      

My question is:

How can we set up our own proxthost for our geoserver layers?

Help would be appreciated.

+3


source to share


1 answer


From the OpenLayers Project Frequently Asked Questions .

To use the cgi proxy you can use the proxy.cgi example from either Trac or GitHub . You should probably use the GitHub link, but I've included the Trac link for completeness.



For standard Apache configuration, you must place proxy.cgi in the / usr / lib / cgi -bin / directory.

You don't need to use a CGI proxy to handle trusted requests across domains. On a machine using IIS to serve the OpenLayers map pages, I used application request routing rather than a CGI script to forward http requests to a trusted GeoServer.

+2


source







All Articles