regex - nginx location tilde -


what tilde (~) doing in nginx location directive? ie:

location ~* \.(png|gif|jpg)$ {   [...configuration] } 

the tilde (~) identifier nginx letting know location block using regex match location.

"~" = regex match, case-sensitive

"~*" = regex match, case-insensitive

nginx docs


Comments