[Geoserver-users] GeoServer log in issue by localhost link

Hi all,

After upgrading to the new version of GeoServer(2.23.2) we have faced the issue that wasn’t present in the older GeoServer versions. In the older version of geoserver we can use to login via internal (http://Localhost/geoserver/web)) and external https://example.com/geoserver/web and both are working. In the latest version to be able to use the external link, we will be needing to add the domain in proxy base to web.xml config file under the webapps directory. However, after this configuration applied when we tried to login via localhost/geoserver/web it keeps redirected to the external URL and not retain to localhost.

Current setup:
GeoServer version to 2.23.2
ApacheTomcat 9.0.60
Java (OpenJDK) 11.0.20
GeoServer deployment was via war file.

Thank you in advance.

Best regards,

Maria

I am not sure I understand:

needing to add the domain in proxy base to web.xml config file

Are you referring the PROXY_BASE_URL setting? Is your geoserver located behind a proxy (such as Apache or NGINX).

···


Jody Garnett

Yes, referring on proxy_base_url setting.

The https://example.com/geoserver need to be added in proxy setting to be able to login in via external url

If we will just leave it as default we will encounter the j-spring error or 404:

image.png

вт, 26 мар. 2024 г. в 13:09, Jody Garnett <jody.garnett@anonymised.com>:

···


Jody Garnett