<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Dear Andrés Maneiro<br><br>Thank you for your advice, it is clear to me.. I change all my host and scripts to ms4w server on Windows without using Mapfish , If you know how to put proxy.cgi inside ms4w please help me again. <br><br>Thank you very much <br><br>Quang <br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Andrés Maneiro <amaneiro@icarto.es><br><b><span style="font-weight: bold;">To:</span></b> openlayers-users@lists.osgeo.org<br><b><span style="font-weight: bold;">Sent:</span></b> Mon, March 21, 2011 4:08:09 PM<br><b><span style="font-weight: bold;">Subject:</span></b>
Re: [OpenLayers-Users] Proxy.cgi<br></font><br>
Hello Truongxuan,<br><br>as far as I know, the proxy available in <a target="_blank" href="http://openlayers.org">openlayers.org</a> webpage is for Apache webserver. The reason why is needed: <a href="https://developer.mozilla.org/en/Same_origin_policy_for_JavaScript" target="_blank">https://developer.mozilla.org/en/Same_origin_policy_for_JavaScript</a><br><br>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.<br><br>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.<br><br>best,<br>amaneiro<br><br>On 21/03/11 15:41, truongxuan quang wrote:<br>> Dear list<br>> <br>> I send the question some days before but I think those were not clear to<br>> you, so I am trying to do exactly same in this threat<br><span>> <a target="_blank" href="http://lists.osgeo.org/pipermail/openlayers-users/2010-June/017952.html">http://lists.osgeo.org/pipermail/openlayers-users/2010-June/017952.html</a></span><br>> I using Geoserver 2.1 , Openlayers running inside Mapfish environmentI<br>> am try to configure many time for proxy.cgi then change to proxy.php and<br>> also <a target="_blank" href="http://proxy.py">proxy.py</a>. I use /WMS GetFeatureInfo /I receives a blank popup when<br>> I click to a map.<br>> <br>> my configure example by proxy.py<br>> <br>> #!C:/python25/python.exe -u<br>> import urllib2<br>> import cgi<br>> import sys, os<br>> #
Designed to prevent Open Proxy type stuff.<br>> allowedHosts = ['<a target="_blank" href="http://www.openlayers.org">www.openlayers.org</a><span> <<a target="_blank" href="http://www.openlayers.org">http://www.openlayers.org</a>>',</span><br>> 'openlayers.org',<br>> '<a target="_blank" href="http://labs.metacarta.com">labs.metacarta.com</a>', '<a target="_blank" href="http://world.freemap.in">world.freemap.in</a>',<br>> '<a target="_blank" href="http://prototype.openmnnd.org">prototype.openmnnd.org</a>', '<a target="_blank" href="http://geo.openplans.org">geo.openplans.org</a>',<br>> '<a target="_blank" href="http://sigma.openplans.org">sigma.openplans.org</a>', '<a target="_blank" href="http://demo.opengeo.org">demo.opengeo.org</a>',<br>> '<a target="_blank" href="http://www.openstreetmap.org">www.openstreetmap.org</a><span> <<a target="_blank" href="http://www.openstreetmap.org">http://www.openstreetmap.org</a>>',
'</span><a target="_blank" href="http://sample.azavea.com">sample.azavea.com</a>',<br>> '<a target="_blank" href="http://v2.suite.opengeo.org">v2.suite.opengeo.org</a>', 'v-swe.uni-muenster.de:8080',<br>> '<a target="_blank" href="http://vmap0.tiles.osgeo.org">vmap0.tiles.osgeo.org</a>' '127.0.0.1',<br>> 'localhost:5000']<br>> <br>> My question is: I do not you any kind of webserver like ms4w or TomCat,<br>> I use only mapfish environment with (openlayers + geoserver) how and<br>> where can I put the proxy.cgi file? I am very sorry for this question<br>> <br>> Thank you very much<br>> <br>> Quang<br>> <br>> <br>> <br>> _______________________________________________<br>> Users mailing list<br>> <a ymailto="mailto:Users@lists.osgeo.org" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br><span>> <a target="_blank"
href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a></span><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.osgeo.org" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br></div></div>
</div><br>
</body></html>