nginx is too greedy with urls

rainer at ultra-secure.de rainer at ultra-secure.de
Fri Apr 29 14:10:56 UTC 2016


Hi,

I have a case where a redirect for

word-hyphen


should take precendence over a proxy_pass with

word

only


both are inside location {} directives.


location ~ ^/word-hyphen{
  return 301 https://bla/one/two/word-hyphen ;
}

location /word{
  proxy_pass http://upstream/ ;
}

I just can't get it to work.



Any ideas?


Best Regards,
Rainer



More information about the nginx mailing list