Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 25f18ea266f238989aaf7c22db5579a1 > files > 1

apache-mod_clamav-0.22-4mdv2009.0.src.rpm

<IfDefine HAVE_CLAMAV>
    <IfModule !mod_clamav.c>
	LoadModule clamav_module	extramodules/mod_clamav.so
    </IfModule>
</IfDefine>

<IfModule mod_clamav.c>

    # ClamavMode - virus scanning mode: local or daemon
    ClamavMode daemon

    # ClamavSocket - Socket file name if clamd uses Unix domain socket
    ClamavSocket /var/lib/clamav/clamd.socket

    # ClamavDbdir - Directory containing clamav databases
    #ClamavDbdir /var/lib/clamav

    # ClamavTmpdir - Directory for temporary files during virus checking
    ClamavTmpdir /var/spool/mod_clamav

    # ClamavReloadInterval - Database reload interval
    #ClamavReloadInterval 0

    # ClamavTrickleInterval - Trickle interval
    #ClamavTrickleInterval 60

    # ClamavTrickleSize - Trickle size

    # ClamavMaxfiles - Maximum number of files in an archive

    # ClamavMaxfilesize - Maximum archive size

    # ClamavRecursion - Maximum recursion depth when analyzing archives

    # ClamavPort - Port number where clamd can be reached
    #ClamavPort 3310

    # ClamavShm - shared memory file name
    #ClamavShm clamav.shm

    # ClamavMutex - mutex lock file name
    #ClamavMutex clamav.lock

    # ClamavSafetypes - a list of MIME types for which it is safe to bypass the virus checker
    ClamavSafetypes image/gif image/jpeg image/png

    # ClamavSizelimit - files larger than the sizelimit will only be checked up to that point

    # ClamavAcceptDaemonproblem - wether or not to live with a misbehaving daemon

    # ClamavExtendedLogging - wether to use extended logging (yes|no)
    ClamavExtendedLogging On

    # ClamavPermissions - Access permissions for temporary files (octal permission value)

    # ClamavMessage - Custom virus notification message

    # ClamavSafepattern - A file pattern for which it is safe to bypass the virus checker

    # ClamavSafeURI - A match type (`host' or `uri') and a pattern for which it is safe to bypass the virus checker


#    <Proxy *>
#	SetOutputFilter CLAMAV
#    </Proxy>

    <Location /clamav>
	SetHandler clamav
	Order Deny,Allow
	Allow from 127.0.0.1
        ErrorDocument 403 "Access denied per /etc/httpd/modules.d/86_mod_clamav.conf"
    </Location>

# If you want to test mod_clamav setup uncomment the following line :
#
#     <Proxy *>
#	    SetOutputFilter CLAMAV
#    </Proxy>
#   <Location /test-clamav >
#        Order allow,deny
#        Allow from all
#        ProxyPass http://localhost/eicar_com.zip
#   </Location>
#
# and place the file eicar_com.zip, downlaoded on
# http://www.eicar.org/download/eicar_com.zip
# in /var/www/html
#

</IfModule>