L LiteSpeedIssues1234 Member Feb 11, 2021 #1 Feb 11, 2021 #1 Basically we have a high traffic website and don't want to log hits to static files unless the hit resulted in a failure to load for some reason (Anything other than HTTP 200 status code). Is this possible?
Basically we have a high traffic website and don't want to log hits to static files unless the hit resulted in a failure to load for some reason (Anything other than HTTP 200 status code). Is this possible?
serpent_driver Well-Known Member Feb 11, 2021 #2 Feb 11, 2021 #2 Yes! It's the same like with Apache in .htaccess, but know only REQUEST source. Status code is not supported by Apache. Code: SetEnvIf Request_URI "\.css$ " dontlog SetEnvIf Request_URI "\.js$ " dontlog .... https://httpd.apache.org/docs/2.0/mod/mod_setenvif.html Last edited: Feb 11, 2021
Yes! It's the same like with Apache in .htaccess, but know only REQUEST source. Status code is not supported by Apache. Code: SetEnvIf Request_URI "\.css$ " dontlog SetEnvIf Request_URI "\.js$ " dontlog .... https://httpd.apache.org/docs/2.0/mod/mod_setenvif.html