Howdy, Stranger!

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


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Log files, condition on 2 vars

ninocassninocass Posts: 1Member
I have the following setup in my default file:
SetEnvIf Request_URI .gif$ images
SetEnvIf Request_URI .png$ images
SetEnvIf Request_URI .jpg$ images
SetEnvIf Remote_Addr "" 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


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


Sign In or Register to comment.