Package: nginx Version: 1.6.2-5 Severity: important See the attachment for a working configuration that exposes three different locations using different rules, loc1, loc2 and loc3.
Using the following URLs, you can reproduce the erroneous behavior: http://localhost:81/loc1?id=12&name=foo http://localhost:81/loc2?id=12&name=foo http://localhost:81/loc3?id=12&name=foo TIA for your help! Carsten -----Ursprüngliche Nachricht----- Von: Michael Lustfield [mailto:mich...@lustfield.net] Gesendet: Mittwoch, 10. Juni 2015 15:38 An: Carsten Klein; 788...@bugs.debian.org Cc: Debian Bug Tracking System Betreff: Re: Bug#788348: nginx: $arg_id is always undefined We would need to see your entire unmodified configuration file to help with this. Additionally, it is MUCH better to use a map directive for most cases where $arg_ARG is used. On Wed, Jun 10, 2015 at 7:53 AM, Carsten Klein <carsten.kl...@bva-media.de> wrote: > Package: nginx > Version: 1.6.2-5 > Severity: important > > Dear Maintainer, > > *** Reporter, please consider answering these questions, where > appropriate *** > > * What led up to the situation? > > Having a rule like so in the nginx configuration > > location ^~ /foo/bar/news.php { > if ($arg_id ~ "[0-9]+") { > rewrite ...; > } > } > > Please note that in older nginx versions this worked just fine. It > seems that it was broken with the introduction of nginx 1.6.2 or the version > before that. > > * What exactly did you do (or not do) that was effective (or > ineffective)? > > I pointed my browser to http://localhost/foo/bar/news.php?id=1234. > > * What was the outcome of this action? > > In the error.log it says that the rule could not be applied and that > $arg_id was undefined. > > * What outcome did you expect instead? > > $arg_id should have had the value 1234 and the rule should have been > applied along with also the rewrite directive. > > *** End of the template - remove these template lines *** > > > -- System Information: > Debian Release: 8.1 > APT prefers stable-updates > APT policy: (500, 'stable-updates'), (500, 'stable') > Architecture: amd64 (x86_64) > > Kernel: Linux 3.18.9-x86_64-jb1 (SMP w/8 CPU cores) > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash > Init: sysvinit (via /sbin/init) > > Versions of packages nginx depends on: > ii nginx-full 1.6.2-5 > > nginx recommends no packages. > > nginx suggests no packages. > > -- no debconf information >