Regex and Nginx 😤
Regex and Nginx 😤
Hi,
I have this rule in my nginx config file
nginx
location ~* \/(fileA.txt|fileB.txt)$ {
return 404 'nothing here';
}
but it's not working
but
nginx
location /fileA.txt {
return 404 'nothing here';
}
is working....
Any idea what's wrong ?
Thanks.