Forum: NGINX Access to request parameters in nginx

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Arvind Jayaprakash (Guest)
on 2008-10-17 10:33
(Received via mailing list)
Is there a way by which I can get access to GET/POST variables in a
request? Third party modules are also welcome. If not, can someone point
do a documentation of how to use ngx_hash_* functions/stucts. I don't
mind submitting a patch for GET variables parsing.
Eden Li (Guest)
on 2008-10-17 20:52
(Received via mailing list)
If I'm not mistaken, you can access GET query string variables in
nginx 0.7.8 or greater via $arg_*.  For example:

  location /path {
    rewrite /path /otherpath?newarg=$arg_oldarg redirect;

Which would redirect /path?oldarg=blah to /otherpath?newarg=blah

On Thu, Oct 16, 2008 at 11:25 PM, Arvind Jayaprakash
This topic is locked and can not be replied to.