httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Blane Warrene" <Blane.Warr...@acc-corp.net>
Subject RE: [users@httpd] not log images in access logs server wide
Date Thu, 26 Feb 2004 13:01:47 GMT
You should be able to exclude them with conditional logging - such as
the example below for blocking entries for the robots.txt file:



# Prevent entries for robots.txt
SetEnvIf Request_URI "^/robots\.txt$" dontlog 
# Log what remains
CustomLog logs/web.log combined env=!dontlog

You would add the env=!dontlog to each of the independent access logs on
the box or to the master if you are using single log file.



Blane
 
-----Original Message-----
From: aaebd [mailto:aaebd@yahoo.com] 
Sent: Thursday, February 26, 2004 12:00 AM
To: users@httpd.apache.org
Subject: [users@httpd] not log images in access logs server wide

I am trying to not log images server wide I read the apache faq but
can't seem to stop it I have plesk 6.0
rh9
Anybody know exactly what virtualhost directive location to add the
following in (To Not Log Images in The Apache Logs server wide)

SetEnvIf Request_URI \.gif image-request SetEnvIf Request_URI \.jpg
image-request SetEnvIf Request_URI \.png image-request CustomLog
logs/access_log env=!image-request

/etc/httpd/conf/httpd.conf
or in
/usr/psa/admin/ section

__________________________________
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message