AW: [OpenLayers-Users] OpenLayers.ProxyHost ='/geoserver/rest/proxy?url=';

Morper-Busch, Lucia Lucia.Morper-Busch at sbg.ac.at
Thu Jul 14 08:43:44 EDT 2011


Hello!
Who can help me? I need getFeatureInfo for local and remote WMS layers.
How can I prevent the authentification window? (with geoserver credentials)
Why I can only request the first host? Either the localhost or the remote host, depending on which host I query at first. I can't ask one after another, only layers of the respectively first host. When I refresh my website I can begin with the second host but then I get no information of the first. And so on...
Thank you
Lucia

Dipl.-Geogr. Lucia Morper-Busch | Researcher
University of Salzburg | Centre for Geoinformatics - Z_GIS
Schillerstr.30 | Techno-Z, Block 15, 3rd floor | 5020 Salzburg, Austria
Phone +43 (0)662 8044 5298 | Fax +43 (0)662 8044 5260
> Z_GIS...experts for the spatial view

-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Morper-Busch, Lucia
Gesendet: Mittwoch, 13. Juli 2011 16:56
An: openlayers-users at lists.osgeo.org
Betreff: [OpenLayers-Users] OpenLayers.ProxyHost ='/geoserver/rest/proxy?url='; 

Hello!
I want to query local and remote feature information for WMS layers.
I have a server on which stays a javascript/html map viewer with ExtJs and Openlayers, in the back runs a Geoserver 2.0.2.
I installed the Geoserver Proxy Extension on my server to access also a remote server.
On my server the html file is in the C:\Program Files\GeoServer 2.0.2\webapps\geoserver folder.
I added two hosts (without port) to the permitted hostnames: the server localhost (but with the server address not 'localhost') and a remote server host (IP address) where another geoserver is running.
When I try to access the html map viewer from another PC the getfeatureinfo request requires an authentification (the geoserver username and password). And only the first host on that I try to ask the feature information gives me an reply, the other host is not responding. But when I begin with the other host it's the other way round. Like random.
When I insert the url in the browser address box (http://serverhost:8080/geoserver/rest/proxy?url=getfeatureinfo-request) I have to authentificate!
On the server the getfeatureinfo request works without authentification, but that's not intended.
Without proxyhost I get only the feature information for the layers that are local.
I tried also OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url="; But the response is only the plain text of the cgi file.
Who's familiar with proxy and local/remote WMS layers?
Thank you for suggestions
Lucia

Dipl.-Geogr. Lucia Morper-Busch | Researcher
University of Salzburg | Centre for Geoinformatics - Z_GIS
Schillerstr.30 | Techno-Z, Block 15, 3rd floor | 5020 Salzburg, Austria
Phone +43 (0)662 8044 5298 | Fax +43 (0)662 8044 5260
> Z_GIS...experts for the spatial view


More information about the Users mailing list