Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use the GeoExt QueryPanel, which I got working so far. I configured an osgeo proxy on my Apache Server, I use the override-ext-ajax.js and have the OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url="; class configured. My problem is the following: When the QueryPanel.js sends requests to geoserver, it uses wrong URLs which I figured must be related to the QueryPanel.js file. The sent request URLs look like this:


The request is sent via the proxy.cgi twice. The request URL should rather look like this, going passed geoserver´s WFS:


When using firebug, I can temporarily change the URLs and make the queries work! When replacing line 182

url: Ext.urlAppend(protocol.url, Ext.urlEncode({


url: Ext.urlAppend("http://localhost/geoserver/wfs", Ext.urlEncode({,

the describeFeatureType requests are sent the right way, but attribute queries are still using the wrong URL (localhost/cgi-bin/proxy.cgi/wfs instead of localhost/geoserver/wfs). I can´t find the responsible line for the query URLs and I´m also not really sure what to replace, since I´m quite new to JS & GeoExt. If it´s not possible to fix my problem that way, can you see another method to fix this problem?

share|improve this question
up vote 0 down vote accepted

I figured the source of the problem - think it was a setting that I made when having difficulties configuring a WFS. In GeoServer Globale settings, I set the Proxy Base URL to http://localhost/cgi-bin/proxy.cgi?url=, which I changed to http://localhost/geoserver now and all works fine...

Sorry for any confusion!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.