Sarah
I was able to setup a ProxyHost with IIS 6 / Geoserver on a local PC by
doing the following:
Install Python 2.5 or other version
Install to c:\python25 or other directory
Add path to system environment variable Path.
Add Python support on IIS
On IIS right click the default website and select Properties
On Home Directory, select Configuration and under Mapping select the Add
button
In the Executable box, add "c:/python25/python.exe %s %s"
In the Extension box, add the extension: ".py"
Accept other defaults and select OK repeatedly
Modify ProxyHost file
Copy the example ProxyHost script from
http://trac.openlayers.org/browser/trunk/openlayers/examples/proxy.cgi
Place the example proxy.cgi file in the Website directory like
wwwroot/mybin
Rename to proxy.cgi to proxy.py
Change the first line #!/usr/bin/env python to #!C:/Python25/python.exe
-u
Edit the OpenLayers.ProxyHost variable to match that URL. Given the above
IIS configuration:
OpenLayers.ProxyHost = "/mybin/proxy.py?url=";
Open website from http://localhost/pathtowebsite/index.htm. Does not work
from local file C:\pathtowebsite\index.htm.
Nigel
From: [email protected]
[mailto:[email protected]] On Behalf Of Sarah
Schuessler
Sent: Wednesday, February 09, 2011 7:48 AM
To: [email protected]
Subject: [OpenLayers-Users] proxy OL, Geoserver and IIS
Hi list,
I have searched a bit at this list and found some threads. But it is not
complete clear if I understood it right.
My environment looks like:
windows xp (with IIS 6)
Geoserver at Tomcat.
html-page is located at www folder of geoserver
(myserver:8080/www/myapp.html)
I want to make a getfeatureinfo from another web service (ArcGIS Server,
http://anotherserver/AGS/services/myapp/mapserver/wmsserver ) so I need a
proxy for that (or I am mixing something up?).
best link I´ve found was http://geographika.co.uk/a-proxy-for-iis-and-net I
think.
So my question is: is it right that I have to install my proxy at IIS and
not at geoserver? Or did I another mistake?
Any comments welcome!
thanks
Sarah
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users