Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setup own Openlayers Proxyhost

I have seen some example related to WMS Get Feature Info like :

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

In this example they are using

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

My question is :

How we can setup our own proxthost for our geoserver layers?

Help would be appreciated.


1 Answers

From Frequently Asked Questions about the OpenLayers project.

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

For the standard Apache configuration, you would place proxy.cgi into your /usr/lib/cgi-bin/ directory.

You don't have to use CGI proxy to handle sending trusted requests across domains. On a machine using IIS to serve the OpenLayers map pages, I have used Application Request Routing rather than a CGI script to forward http requests to a trusted GeoServer.

like image 147
AlexC Avatar answered Jul 20 '26 21:07

AlexC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!