Dontlog specific file format

Mattpl

Verified User
Joined
Jun 28, 2017
Messages
84
Location
ZS
Hi, I need to change some conf in apache - don't log file request for (jpg|jpg|gif|png|bmp|ico|css|js
I have add this code into httpd.conf
Code:
<IfModule log_config_module.c>
#replace %b with %O for more accurate logging
[B]SetEnvIf Request_URI "/*\.(jpg|jpg|gif|png|bmp|ico|css|js)$" dontlog 
[/B]<IfModule mod_logio.c>

Can someone tell me if this code will work properly
 
this not work ;/
I have add this to httpd.conf and httpd.conf for specific user, still in logs I can see css/images etc.

SetEnvIf Request_URI "\.(txt|jpg|png|gif|ico|js|css|swf|js?.|css?.)$" StaticContent
CustomLog /var/log/httpd/domains/domain.pl.log combined env=!StaticContent
 
Back
Top