My problem with "c:/python25/python.exe %s %s" giving error at IIS manager 
still persists.

 

Try this:   c:\python25\python.exe -u "%s" "%s"

 

 

From: [email protected] 
[mailto:[email protected]] On Behalf Of Sarah Schuessler
Sent: Thursday, February 10, 2011 8:29 AM
To: [email protected]
Subject: AW: [OpenLayers-Users] proxy OL, Geoserver and IIS

 

Hi list,

I tried Nigel suggestion but could not succeeded. I get a 404 network error 
saying "unhandled request return Not found". Does not matter if I put cgi 
script into C:/program/Apache/Tomcat/webapps/geoserver/data/www folder (where 
my .html and .js lies) or C:/Inetpub/wwwroot (about relative path 
OpenLayers.ProxyHost = "/mybin/proxy.py?url=" I would think that it is relative 
to where my .js is (geoserver path and not iis)) .
My problem with "c:/python25/python.exe %s %s" giving error at IIS manager 
still persists.
I´m sure it`s right in front of my eyes but not able to see it.
If you have any question I´m happy to answer it.
Any clues?




best regards
Sarah

________________________________

 

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]] 
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

Reply via email to