[OpenLayers-Users] Proxy.cgi

Andrés Maneiro amaneiro at icarto.es
Mon Mar 21 11:08:09 EDT 2011


Hello Truongxuan,

as far as I know, the proxy available in openlayers.org webpage is for 
Apache webserver. The reason why is needed: 
https://developer.mozilla.org/en/Same_origin_policy_for_JavaScript

In that case, you would put the proxy file in the path for cgi-bin 
scripts (usually /usr/lib/cgi-bin/ in GNU/Linux systems, but it can be 
configured in apache configuration files). And Apache would use it to 
redirect your petitions to the host allowed in the proxy file.

I have no experience with MapFish, but I think it uses internally pylons 
technology which comes with a python light webserver, so it seems you 
don't need Apache. If that's the case, I think that proxy file will not 
work for you. I would suggest you to look in mapfish documentation and 
ask in mapfish mailinglist. I think they will be more helpful for your 
specific case.

best,
amaneiro

On 21/03/11 15:41, truongxuan quang wrote:
> Dear list
>
> I send the question some days before but I think those were not clear to
> you, so I am trying to do exactly same in this threat
> http://lists.osgeo.org/pipermail/openlayers-users/2010-June/017952.html
> I using Geoserver 2.1 , Openlayers running inside Mapfish environmentI
> am try to configure many time for proxy.cgi then change to proxy.php and
> also proxy.py. I use /WMS GetFeatureInfo /I receives a blank popup when
> I click to a map.
>
> my configure example by proxy.py
>
> #!C:/python25/python.exe -u
> import urllib2
> import cgi
> import sys, os
> # Designed to prevent Open Proxy type stuff.
> allowedHosts = ['www.openlayers.org <http://www.openlayers.org>',
> 'openlayers.org',
> 'labs.metacarta.com', 'world.freemap.in',
> 'prototype.openmnnd.org', 'geo.openplans.org',
> 'sigma.openplans.org', 'demo.opengeo.org',
> 'www.openstreetmap.org <http://www.openstreetmap.org>', 'sample.azavea.com',
> 'v2.suite.opengeo.org', 'v-swe.uni-muenster.de:8080',
> 'vmap0.tiles.osgeo.org' '127.0.0.1',
> 'localhost:5000']
>
> My question is: I do not you any kind of webserver like ms4w or TomCat,
> I use only mapfish environment with (openlayers + geoserver) how and
> where can I put the proxy.cgi file? I am very sorry for this question
>
> Thank you very much
>
> Quang
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users


More information about the Users mailing list