[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] OOpenlayer dudas generales



Camaleón <noelamac@gmail.com> escribió:

El Fri, 04 May 2012 09:29:38 -0400, islanis escribió:

Alguien ha trabajado con openlayer tengo algunas dudas que quiero
aclarrar,mi gran dudaes como configurar el proxy.cgi en mi  servidor web

Esto es lo que pone en su FAQ, a ver si te da alguna pista:

***
ProxyHost

- Why do I need a ProxyHost?

Due to security restrictions in Javascript, it is not possible to
retrieve information from remote domains via an XMLHttpRequest.

Classes like WFS and GeoRSS use XMLHTTPRequest to get their data. If they
are querying a remote server (anything other than the machine hosting
your page), you must install a proxy script somewhere web accessible on
that machine. See below for how to set up your own ProxyHost.

If the OpenLayers.ProxyHost variable is not set to a valid proxy host,
requests are sent directly to the remote servers. In most cases, the
result will be a security exception, although this exception often occurs
silently.

- How do I set up a ProxyHost?

An example proxy host script is available here: trunk/openlayers/examples/
proxy.cgi

ya lo conseguí y lo puse en practica pero no funciona


For the standard Apache configuration, you would place proxy.cgi into
your /usr/lib/cgi-bin/ directory.

Once a proxy host script has been installed, you must then edit the
OpenLayers.ProxyHost variable to match that URL.

Given the above standard Apache configuration:

    OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";

If you have done something like this, you should be able to visit:

     http://YourDomain.example.com/cgi-bin/proxy.cgi

Esta es la parte que no entiendo , me parece que hay que tocar algunas otras cosas, es que de entrada como lo estoy probando en mi misma pc lo que pongo es
debo pensar entonces que localhost=YourDomain.example.com o como es?



The resulting content at that page should be the openlayers.org website.

If you get a 404 error instead, either the proxy script is not in the
right location, or your webserver is not configured correctly.
***

Saludos,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-spanish-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] jo0o8f$3du$4@dough.gmane.org">http://lists.debian.org/[🔎] jo0o8f$3du$4@dough.gmane.org





----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


--

Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas

Infomed: http://www.sld.cu/


Reply to: