I'm running in Kubernetes with image docker.io/qgis/qgis-server:3.44.10.
Every request that comes in first tries to resolve localhost to an IPv6 address (which fails), then falls back to an IPv4 address (which succeeds). I was able to fix it by overwriting this file https://github.com/qgis/qgis-docker/blob/main/server/conf/qgis-server-nginx.conf#L92
Changing localhost to 127.0.0.1 forces it to skip the IPv6 resolution step. I think this should be the default value in this config instead of localhost. The landing page config file has the same issue (/etc/nginx/qgis.d/landing-page.conf).
I'm running in Kubernetes with image docker.io/qgis/qgis-server:3.44.10.
Every request that comes in first tries to resolve localhost to an IPv6 address (which fails), then falls back to an IPv4 address (which succeeds). I was able to fix it by overwriting this file https://github.com/qgis/qgis-docker/blob/main/server/conf/qgis-server-nginx.conf#L92
Changing
localhostto127.0.0.1forces it to skip the IPv6 resolution step. I think this should be the default value in this config instead oflocalhost. The landing page config file has the same issue (/etc/nginx/qgis.d/landing-page.conf).