]> git.kaiwu.me - nginx.git/commit
Fixed proxy_redirect off inheritance.
authorValentin Bartenev <vbart@nginx.com>
Mon, 30 Jan 2012 11:22:56 +0000 (11:22 +0000)
committerValentin Bartenev <vbart@nginx.com>
Mon, 30 Jan 2012 11:22:56 +0000 (11:22 +0000)
commit3feafa765f5c065ec2921ef92c4c32c2dea4736c
tree6b5c5e81fc6f2be4a5ddd47796cf275752d8f829
parent4a23bc57051187362094c1f41793901805ac55c2
Fixed proxy_redirect off inheritance.

Example configuration to reproduce:

  server {
      proxy_redirect off;

      location / {
          proxy_pass http://localhost:8000;
          proxy_redirect http://localhost:8000/ /;

          location ~ \.php$ {
              proxy_pass http://localhost:8000;
              # proxy_redirect must be inherited from the level above,
              # but instead it was switched off here
          }
      }
  }
src/http/modules/ngx_http_proxy_module.c