[OpenLayers-Users] How to configure Proxy.cgi with IIS

Carlos Krefft ckrefft at rsmas.miami.edu
Tue Mar 15 13:36:59 EDT 2011


You are right, you need a proxy if you are going to call some types of
services such as WFS across domains.

I have a .NET proxy I use if you prefer so you don't have to install perl on
IIS.

I have attached the proxy handler I use. I commented out the original
authentication stuff as I use forms Authentication and do not need the
additional authentication. You need to be careful to use some sort of
security or authentication (maybe IP based). If you don't anyone can use
you're server as a proxy.

I placed my proxy handler in a folder called proxy and can now use it like:
OpenLayers.ProxyHost = "proxy/proxy.ashx?url=";

And my WFS calls work to other machines.

Kind Regards,
Carlos K.


Carlos Krefft
Software Development Engineer
Center for Southeastern Tropical Advanced Remote Sensing (CSTARS)
University of Miami
11811 SW 168th Street
Miami, FL 33177

ckrefft at rsmas.miami.edu


-----Original Message-----
From: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of Mustafa646
Sent: Tuesday, March 15, 2011 1:00 PM
To: users at openlayers.org
Subject: [OpenLayers-Users] How to configure Proxy.cgi with IIS

I installed GeoServer on server 172.20.100.13 and i also publish my
OpenLayers application on same server. when i make the request to this
server for accessing the page like,
(http://172.20.100.13/Myapp/layers.aspx), 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/proxy.py?url"

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. 

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/How-to-configure-Proxy-cgi-with-IIS-t
p6173500p6173500.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: proxy.zip
Type: application/x-zip-compressed
Size: 1279 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110315/5860b7e8/proxy.bin


More information about the Users mailing list