map or not map?

etienne.champetier at etienne.champetier at
Thu Mar 6 18:24:39 UTC 2014


To help with debbuging, I'm adding an header like this (multiple nginx behind a load balancer)
add_header X-Served-By $hostname

$hostname are like 'myserverXX',
how can i put only the XX instead of full $hostname (to put less informations)

Is using map the only solution (i'm looking for a simple regexp)?

Thanks in advance

More information about the nginx mailing list