map or not map?

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


Hi,

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
Etienne



More information about the nginx mailing list