[Geoserver-users] [Geoserver 2.0]: How to set the server address and port ?

Folks,

I used to setup the server name and port in the ProxyBaseUrl element of services.xml, but this seems to be no longer an option in 2.0, hence WMS requests with format application/openlayers fail... any idea on how to solve it ?

Regards,

--------------------
    Luca Morandini
www.lucamorandini.it
--------------------

Luca Morandini <lmorandini <at> ieee.org> writes:

Folks,

I used to setup the server name and port in the ProxyBaseUrl element of
services.xml, but this seems to be no longer an option in 2.0, hence WMS
requests with format application/openlayers fail... any idea on how to
solve it ?

Well, it was convoluted a bit, by I think I solved it:

1) Add the following under <global> in global.xml (GEOSERVER_DATA_DIR):
<proxyBaseUrl>http://your-public-address/geoserver&lt;/proxyBaseUrl&gt;
Please note the difference with the 1.x.x configuration XMLs: the first letter
of elements is lowercase !

2) Enable the reverse proxy in web.xml:
<param-name>enabled</param-name>
<param-value>true</param-value>

3) Empty the mime-types translated by said reverse provy in web.xml, like:
<param-name>mime-types</param-name>
<param-value></param-value>

I have the sneaking suspicion this may be the same GEOS-2547 issue that has been
solved in Geoserver 1.7.3... anyway, should I add an issue to Jira ?

Regards,

--------------------
   Luca Morandini
www.lucamorandini.it
--------------------

Luca Morandini <lmorandini <at> ieee.org> writes:

3) Empty the mime-types translated by said reverse provy in web.xml, like:
<param-name>mime-types</param-name>
<param-value></param-value>

Errata corrige, this should be:
<param-name>mime-types</param-name>
<param-value>text/html.*,text/css.*</param-value>
(apparently the issue is limited to Javascript translation only).

Apologies & Regards,

--------------------
   Luca Morandini
www.lucamorandini.it
--------------------