Hi List I'm trying to change the proxy base url using proxy headers but none of the supported headers seem to work (https://docs.geoserver.org/latest/en/user/configuration/globalsettings.html#proxy-base-url). If for example I change it to http://${X-Forwarded-Host}/random/path it doesn't seem to change the values for the ows:Get and ows:Post xlink:href and the value is still just http://servername.org:8092/wfs. No matter which of the supported headers I try, none of them actually changes the output. If I hardcode a Base proxy URL like http://someotherserver.org/random/path it will change the value of the ows:Get and ows:Post xlink:href to http://someotherserver.org/random/path/wfs
Does anyone have a clue as to what I'm doing wrong? My global.xml look like this: <?xml version="1.0" encoding="UTF-8"?><global> <settings> <id>SettingsInfoImpl-68f6c583:154ca420c47:-8000</id> <contact> <addressCity>Copenhagen</addressCity> <addressCountry>Denmark</addressCountry> <addressType>Work</addressType> <contactEmail>s...@sdfe.dk</contactEmail> <contactOrganization>Styrelsen for Dataforsyning og Effektivisering</contactOrganization> <contactPerson>all</contactPerson> <contactPosition>__</contactPosition> </contact> <charset>UTF-8</charset> <numDecimals>8</numDecimals> <onlineResource>http://geoserver.org</onlineResource> <proxyBaseUrl>http://${X-Forwarded-Host}/random/path</proxyBaseUrl> <verbose>false</verbose> <verboseExceptions>false</verboseExceptions> <localWorkspaceIncludesPrefix>false</localWorkspaceIncludesPrefix> </settings> <jai> <allowInterpolation>false</allowInterpolation> <recycling>false</recycling> <tilePriority>5</tilePriority> <tileThreads>7</tileThreads> <memoryCapacity>0.5</memoryCapacity> <memoryThreshold>0.75</memoryThreshold> <imageIOCache>false</imageIOCache> <pngAcceleration>true</pngAcceleration> <jpegAcceleration>true</jpegAcceleration> <allowNativeMosaic>false</allowNativeMosaic> <allowNativeWarp>false</allowNativeWarp> </jai> <coverageAccess> <maxPoolSize>10</maxPoolSize> <corePoolSize>5</corePoolSize> <keepAliveTime>30000</keepAliveTime> <queueType>UNBOUNDED</queueType> <imageIOCacheThreshold>10240</imageIOCacheThreshold> </coverageAccess> <updateSequence>152</updateSequence> <featureTypeCacheSize>0</featureTypeCacheSize> <globalServices>true</globalServices> <useHeadersProxyURL>true</useHeadersProxyURL> <xmlPostRequestLogBufferSize>1024</xmlPostRequestLogBufferSize> </global> // Jonas Jonas Nygaard Pedersen D. +45 72 54 55 10 E. jo...@sdfe.dk<mailto:jo...@sdfe.dk> [Energi-, Forsynings- og Klimaministeriet] Styrelsen for Dataforsyning og Effektivisering Rentemestervej 8 2400 København NV T. +45 7254 5500 W. www.sdfe.dk<http://www.sdfe.dk/>
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users