Welcome! Log In Create A New Profile

Advanced

nginx is too greedy with urls

Anonymous User
April 29, 2016 10:12AM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx is too greedy with urls

Anonymous User April 29, 2016 10:12AM

Re: nginx is too greedy with urls

shiz April 29, 2016 02:03PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 267
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready