# # sample mod_clamav configuration # # (c) 2004 Dr. Andreas Mueller, Beratung und Entwicklung # # $Id: sample.conf,v 1.1 2004/03/21 23:25:53 afm Exp $ # # during make install, includes the module in httpd.conf, so the fllowing # load directive is very seldom needed LoadModule clamav_module modules/mod_clamav.so # specify the directory where the module should place files durin download ClamavTmpdir /var/tmp/clamav # the db directory is only needed in local mode ClamavDbdir /usr/local/share/clamav # bypass scanning of jpeg images ClamavSafetypes image/jpg # make sure we use the clamav daemon on socket /tmp/clamd ClamavMode daemon ClamavSocket /tmp/clamd # send something to the browser every 10 seconds, and don't scan more than # 1 MB of large files ClamavTrickleInterval 10 ClamavTrickleSize 1024 ClamavSizelimit 1000000 # names for shared memory and mutex. Note that we don't know exactly what # apache does in the background. However, we should make sure that apache # can create these files if necessary ClamavShm /usr/local/apache2/logs/clamav.shm ClamavMutex /usr/local/apache2/logs/clamav.lock # if the daemon crashes, we will have a problem connecting to it. Since # we don't have any PCs, we are not very paranoid about this ClamavAcceptDaemonproblem on # we would laike to get a more complete log file ClamavExtendedLogging on LogFormat "%t %!304{clamav:status}n %{clamav:details}n %{clamav:virusname}n request=\"%r\", status=%>s, sent=%!304b, delay=%!304D" clamav_stats CustomLog logs/scan_log clamav_stats # make sure proxy data is filtered SetOutputFilter CLAMAV # define the location for status information SetHandler clamav allow from all # safe patterns is much better than ClamavSavetypes Include conf/safepatterns.conf # we have a customized message in case we find a virus ClamavMessage "\ \ \ \ %i found virus\ \ \ \

%i found virus

\

The virus %v was found while downloading %u.\ The transfer has been aborted.

\ \ \ \ "