Log files, condition on 2 vars

I have the following setup in my default file:
[code]
SetEnvIf Request_URI .gif$ images
SetEnvIf Request_URI .png$ images
SetEnvIf Request_URI .jpg$ images
SetEnvIf Remote_Addr "127.0.0.1" trust
SetEnvIf Remote_Addr "192.168.11" trust

CustomLog /var/log/apache2/access_images.log combined env=images
CustomLog /var/log/apache2/access_https_trusted.log combined env=(trust.!images)
CustomLog /var/log/apache2/access_https_untrusted.log combined env=!trust

[/code]

What i want to do is have 3 log files:

1: All the images and nothing else
2: All connections minus the images that are in the trust area
3: all connections minus the images that are not in the trust area.

I can seperate the trusted and un trusted connections however when i try to add the images part i get nothing :(

Thanks for any help

Nino

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories