Ticket #39 (closed defect: worksforme)

Opened 6 months ago

Last modified 6 weeks ago

WMS query string includes localhost URL

Reported by: hofschnr Owned by: arneke
Priority: major Milestone:
Component: core Version:
Keywords: Cc:

Description

I am using GeoWebCache 0.8.3 as a jar within GeoServer 1.6.4. GeoServer is running on port 8080, but Apache HTTP server is acting as a proxy for it on port 80.

When it makes a WMS request it includes the localhost URL for the server in the query string -- GeoServer is able to make sense of it, but it is incorrect.

Example:

http://HOSTNAME-DELETED/geoserver/wms?width=1024&transparent=true&http://localhost:8080/geoserver/wms?request=GetCapabilities&version=1.1.1&srs=EPSG%3A4326&styles=foo%3Aworld&height=512&exceptions=application%2Fvnd.ogc.se_inimage&bbox=-179.1%2C-89.55%2C179.1%2C89.55&request=GetMap&layers=foo%3Aworld&tiled=false&format=image%2Fpng

The portion of the URI that is definitely wrong is "http://localhost:8080/geoserver/wms?request=GetCapabilities"
though perhaps some of the other query parameters are unintentional.

Change History

Changed 6 months ago by arneke

I am not able to reproduce this. Without doing anything, gwc should connect to http://localhost:8080/geoserver, which would work in your case as well.

How did you intercept this URL?
How is the plugin configured? (I assume GeoServer's web.xml?)

Changed 6 months ago by hofschnr

More details:

I am running on RedHat? Enterprise 3 Linux with Apache HTTP server 2.0.46 acting as an HTTP proxy for GeoServer 1.6.4 running in JBoss 4.0.3SP1:

ProxyPass /geoserver http://localhost:8080/geoserver
ProxyPassReverse /geoserver http://localhost:8080/geoserver

The Proxy base URL setting in GeoServer under Config->Server is set to point to: http://hostname/geoserver .

I found the request URL made by gwc by inspecting the Apache HTTP logs in /var/log/httpd/access_log.

I configured gwc by editing GeoServer's web.xml -- I only added the GEOWEBCACHE_CACHE_DIR context parameter.

Changed 6 weeks ago by arneke

  • status changed from new to closed
  • resolution set to worksforme

Closing, please reopen if you still see it in 1.0. Never was able to reproduce.

Note: See TracTickets for help on using tickets.