Accessing HTTP request headers in nginx module

B.R. reallfqq-nginx at
Thu Mar 27 23:16:42 UTC 2014

In nginx, you have the http_<header name> embedded variable in the core
module <>to
access HTTP headers.
You can build the logic the way you want (through
directives from the
rewrite module <>

Using all that you can redirect to specific URL or backend with whatever
arguments you wish to do the work for you.

It is the UNIX way of doing things to separate components in individual
processes, so I suggest you delegate the job to a third-party one which
will listen for incoming requests.
I would do that this way and keep nginx as close as possible from the lean
genuine version to ensure updates are straightforward.

My 2 cents,
*B. R.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list