Howdy, Stranger!

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

Categories

Do not log css files.

eggie5eggie5 Member Posts: 36
CustomLog logs/access.log common env=!image

LogFormat "%h %l %u %t "%r" %>s %b" common

SetEnvIf Request_URI "(.gif|.jpg)$" image

Alright there is my 'script' in the httpd.conf file, that says not to log gifs and jpgs in the access.log file but how do I make it so it dosent log style sheets either...?

could it be someting kinda like this....
_______________________________________________________

CustomLog logs/access.log common env=!image, !stylesheet

LogFormat "%h %l %u %t "%r" %>s %b" common

SetEnvIf Request_URI "(.gif|.jpg)$" image
SetEnvIF Request_URI "(.css)$" stylesheet

_________________________________________________________

Could you configure this to not log sytle sheets for me??? When I say 'you' im refering to 'Jonathan'.

this is the last thing I need to know... for now...

Comments

  • JonathanJonathan Member Posts: 2,914
    Hi,

    : CustomLog logs/access.log common env=!image, !stylesheet
    :
    : LogFormat "%h %l %u %t "%r" %>s %b" common
    :
    : SetEnvIf Request_URI "(.gif|.jpg)$" image
    : SetEnvIF Request_URI "(.css)$" stylesheet
    :
    : Could you configure this to not log sytle sheets for me??? When I
    : say 'you' im refering to 'Jonathan'.

    LOL! You can hire me too... ;-) That above may work, but if not it's probably something along the lines of:-

    CustomLog logs/access.log common env=!(image|stylesheet)

    In regexps here, ! means not, | means or.

    Any good?

    : this is the last thing I need to know... for now...
    Unless I just got the above wrong...which wouldn't surprise me.

    Later,

    Joanthan



    -------------------------------------------
    Count your downloads:
    http://www.downloadcounter.com/
    And host your site:
    http://www.incrahost.com/
    Don't say I never give you anything... ;-)

  • eggie5eggie5 Member Posts: 36
    : Hi,
    :
    : : CustomLog logs/access.log common env=!image, !stylesheet
    : :
    : : LogFormat "%h %l %u %t "%r" %>s %b" common
    : :
    : : SetEnvIf Request_URI "(.gif|.jpg)$" image
    : : SetEnvIF Request_URI "(.css)$" stylesheet


    : :
    Ha, this time I figured it out myself.

    CustomLog logs/access.log common env=!image

    LogFormat "%h %l %u %t "%r" %>s %b" common

    SetEnvIf Request_URI "(.gif|.jpg|.css)$" image

  • JonathanJonathan Member Posts: 2,914
    Hi,

    : Ha, this time I figured it out myself.
    :
    : CustomLog logs/access.log common env=!image
    :
    : LogFormat "%h %l %u %t "%r" %>s %b" common
    :
    : SetEnvIf Request_URI "(.gif|.jpg|.css)$" image
    :

    I knew you could do it like that, I thought that you wanted to test for the other environment variable...

    Jonathan


    -------------------------------------------
    Count your downloads:
    http://www.downloadcounter.com/
    And host your site:
    http://www.incrahost.com/
    Don't say I never give you anything... ;-)

Sign In or Register to comment.