Map or not map?

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

On 6 March 2014 18:24, [email protected] wrote

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

For this, a map is the /best/ solution!

J

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs