GeoServer Proxy Base URL handling of multiple hosts in X-Forwarded-Host Header

Viewed 20

I am running GeoServer behind an Apache proxy and want to use the https://${X-Forwarded-Host} template as a Proxy Base URL as described here: https://docs.geoserver.org/stable/en/user/configuration/globalsettings.html

At the moment I am running into the following problem: The proxy server sets the X-Forwarded-Host header to the correct host, but the string consists of a comma separated list of hosts and GeoServer does not seem to be able to work with that or parse it correctly.

The URL that shows up in the capabilities document looks like:

"https://geoserver.mydomain.at, geoserver.mydomain.at/".

Because of that the layers are not consumable. Any ideas to work around that issue? Unfortunately I do not have access to the the proxy configuration since it is managed by another department in the organization.

0 Answers
Related