location regex

olat nginx-forum at forum.nginx.org
Tue Nov 1 13:44:12 UTC 2016


Hello,

I would like to ask about regex. Why these 2 doesn't behave the same?

location ~ /(apple/|pear/(small|big)/|test(ing|er)/(fruit|vegis)_)*

location ~ /apple/*|/pear/(small|big)/*|/test(ing|er)/(fruit|vegis)_*


could you point me to good practice?


Ola

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,270678,270678#msg-270678



More information about the nginx mailing list