If you're from the apache world, nginx configuration if often
counter-intuitive.
Does the following help?
# To find location matching a given request, nginx first checks locations
defined
# using the prefix strings (prefix locations). Among them, the location with
the
# longest matching prefix i
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 ge