I know this is a year old thread but just to help someone in the future as it is not documented clearly:
There is a $r->variable(name) function
So just do this
$r->variable(host)
Basically any variable you'd use in your nginx conf/inc files is available to perl in that way.
There is a $r->variable(name) function
So just do this
$r->variable(host)
Basically any variable you'd use in your nginx conf/inc files is available to perl in that way.