Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed GeoServer on server and i also publish my OpenLayers application on same server. when i make the request to this server for accessing the page like, (, then WMS and WFS Layers does not display over Google Map. But the same application with geoserver installed on localhost works fine.

As i understand from different forums, I need to configure Proxy.cgi with IIS to fix this problem and then use it as: Openlayers.ProxyHost = "/cgi-bin/"

I want to know, Am i right or wrong in my understanding OR i am making a mistake.

If i am right, Then can anybody please tell me how i configure Proxy.cgi with IIS ? If some usefuk link available to fix this, then it will be very good for me.

share|improve this question
Where i have to put this files in my website ? – ROCHEDY Feb 11 '13 at 13:50
up vote 4 down vote accepted

With IIS I suggest to use this stuff, instead of configure CGI:

Disclaimer: I suggest this simply because It's not so simple to use CGI&Python inside IIS.

share|improve this answer
+1 That's the one i used with IIS. Worked well for me. – CaptDragon Mar 21 '11 at 12:38

It's not a goog idea set up a proxy. The right solution is to add a specific header to the http response of Geoserver, to allow cross domains request. If you run Geoserver using Jetty, use the following links


EDIT why using a proxy is a bad idea

I see some points against the use of a proxy (both script or configuration like mod_proxy):

  1. Security: 90% of the times, the proxy is not restricted to allow only a specific list of hosts. Developers never put the right effort to secure this stuff. If you spend 15 minutes on google searching for "proxy.php?url" or something else, you will find a lot of scripts that can be used as openproxy (one is here, just tak out the s)

  2. It's a big waste of time to setup every time for every application a proxy! If you "fix" the server, you will be good forever! (Ok, maybe I am the only one who works on hundreds of project a day :P

share|improve this answer
Please explain why it is not a good idea to set up a proxy. – Devdatta Tengshe Feb 11 '13 at 14:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.