Prevent error_log from being accessible from the web using root .htaccess
snippet in htaccess

Prevent error_log from being accessible from the web using root .htaccess

user8936

RewriteEngine On
RewriteRule (^|/)error_log$ - [L,R=404]