how to prevent nginx from accessing .log file extension , I have this nginx config
location ~* (\.ini|\.log|\.conf)$ {
deny all;
error_page 403 =404 / ;
}
but above code is not working anyways? I'm not good enough in pcre regex handling.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With