[GeoNetwork-devel] WMS and proxy server

I have geonetwork and the geoserver installed on maps.domain.com but am required to use a proxy (proxy.maps.domain.com) for the site. Everything goes through proxy fine except for the calls to the map (the layer information via the WMS) I have tried setting the geoserver proxy, but that hasn’t made the change I need. Where/how do I set the base url for the WMSs (for the basic geonetwork 2.6.3) so that they will point to the proxy. Currently the WMSs point to maps.domain.com and so will not work as is.

Thanks for the help, Please let me know if you have any questions,

Ben

Hi Ben,

You can set the base URL for WMS layers in: web/geonetwork/WEB-INF/config-gui.xml under the GeoNetwork install root.

Remember that changing this configuration file to be “correct” for proxy users can break access for internal users. It is probably better to check the proxy server on proxy.domain.com to see that rewriting is active, and a rewrite rule for maps.domain.com/geoserver URLs has been configured, before you change config-gui.xml.

···

– Will

From: Fellow, Benjamin [USA] [mailto:fellow_benjamin@anonymised.com]
Sent: Wednesday, June 08, 2011 1:11 PM
To: geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] WMS and proxy server

I have geonetwork and the geoserver installed on maps.domain.com but am required to use a proxy (proxy.maps.domain.com) for the site. Everything goes through proxy fine except for the calls to the map (the layer information via the WMS) I have tried setting the geoserver proxy, but that hasn’t made the change I need. Where/how do I set the base url for the WMSs (for the basic geonetwork 2.6.3) so that they will point to the proxy. Currently the WMSs point to maps.domain.com and so will not work as is.

Thanks for the help, Please let me know if you have any questions,

Ben