Hi,
my problem is simple, i try to reproduct the behavior of WFS in the
geoserver/demo.
in the geoserver/demo view, you load your WMS, when you click, you have
information under the map.
so i copy/paste the source code of this page into a new page on my Apache
Server.
but when i click, nothing appears... so i've heard about Rss and WFS which
need a proxy.
Following this page :
http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost
i get the proxy.cgi from openlayer, copy it into my Apache/cig-bin/
directory, and edit it to put the right python path.
when i call http://localhost/cgi-bin/proxy.cgi it redirects me to
openlayer.org site page, so it is well configured..
i also add the line
"http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost" into my
html page (from geoserver/demo) and make it efficient..
but when i click on my map, then i have a result, but not the informations
about my map : the message looks like "This proxy does not allow you to
access that location. ......" means i can't reach the info
what is wrong with the proxy.. is there a special proxy to the geoserver WFS
can work on my page.. how does it work in the geoserver/demo page...
plz help i need to retreive the informations of my layers
thks for all
Flo
--
View this message in context: http://www.nabble.com/proxy.cgi-for-WFS-tp20239114p20239114.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
The OpenLayers proxy script includes a list of hosts to which request proxying is allowed (lines 18-22, starts with 'allowedHosts ='. The script refuses requests to other hosts to avoid presenting an open proxy to the web. Likely, all you need to do is edit the script to include your own hostname (with port number) and the issue will be resolved.
The GeoServer wiki also provides some instructions on proxying through Apache directly (no CGI scripts needed) at
http://geoserver.org/display/GEOSDOC/How+to+proxy+Jetty+through+Apache+on+port+80
Despite the page title, the instructions are servlet-container-agnostic and will work with Tomcat, etc.
Hope this helps,
David Winslow
floflo wrote:
Hi,
my problem is simple, i try to reproduct the behavior of WFS in the
geoserver/demo.
in the geoserver/demo view, you load your WMS, when you click, you have
information under the map.
so i copy/paste the source code of this page into a new page on my Apache
Server.
but when i click, nothing appears... so i've heard about Rss and WFS which
need a proxy.
Following this page :
http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost
i get the proxy.cgi from openlayer, copy it into my Apache/cig-bin/
directory, and edit it to put the right python path.
when i call http://localhost/cgi-bin/proxy.cgi it redirects me to
openlayer.org site page, so it is well configured..
i also add the line
"http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost" into my
html page (from geoserver/demo) and make it efficient..
but when i click on my map, then i have a result, but not the informations
about my map : the message looks like "This proxy does not allow you to
access that location. ......" means i can't reach the info
what is wrong with the proxy.. is there a special proxy to the geoserver WFS
can work on my page.. how does it work in the geoserver/demo page...
plz help i need to retreive the informations of my layers
thks for all
Flo