[mapserver-dev] FIX: default values for variable substitution in WEB section

Jeff McKenna jmckenna at gatewaygeomatics.com
Mon Nov 13 13:08:16 PST 2017


Thanks for this Martin.  I have merged this, and asked if you can 
contribute a note about this for the docs.  -jeff



On 2017-11-10 10:26 AM, Martin Icking wrote:
> Currently a default value for substitution variables in the map's WEB section
> is ignored. I've created a fix to this, pls see this pull request:
> https://github.com/mapserver/mapserver/pull/5516
> This enables you now to set a default value for e.g. the ows_onlineresource
> setting as illustrated below.
> Use case: have a correct capabilities reply behind a proxy software (with
> dynamic URI's)
> 
>    WEB
> 	VALIDATION
> 		'default_ows_onlineresource' 'https://defaultserver/defaultpath'
> 		'ows_onlineresource' '^https://[a-z0-9/:.?&=]+$'
> 	END
>      METADATA
>        'ows_onlineresource'	'%ows_onlineresource%'
>      END # METADATA
>    END # WEB
> 
> 
> 


More information about the mapserver-dev mailing list