How can I write an Nginx regexp mathing location containg foo|bar|baz or ending with /beautifu.html?
sth like location ~ ^/.*(foo|bar|baz)/.*$
but also matching .*/beautiful.html
How can I write an Nginx regexp mathing location containg foo|bar|baz or ending with /beautifu.html?
sth like location ~ ^/.*(foo|bar|baz)/.*$
but also matching .*/beautiful.html
Just add /beautifu.html
before the dollar sign to make sure the URL ends with /beautifu.html