Logging to Apache httpd access_log when Request_URI begin with “/concrete5” and not end with “js|css|jpg|png|jpeg|gif”.
Document of setenvIf
demo
<VirtualHost *:9090> ServerName 10.2.201.47 DocumentRoot /var/www/html CustomLog /var/log/httpd/access_log combined setenvIf Request_URI "^\/(concrete5).+\.(?!(js|css|jpg|png|jpeg|gif)$)" concrete5test setenvIf Request_URI "\.(js|png|css|jpg|jpeg|gif)$" notconcrete5 setenvIf Request_URI "^(?!\/(concrete5))" notconcrete5 CustomLog /var/log/httpd/concrete5_log combined env=!notconcrete5 CustomLog /var/log/httpd/concrete5_log.test combined env=concrete5test </VirtualHost>
|