HTTP mode configuration file

The HTTP mode configuration file (hereinafter, also configuration file) is an XML file that specifies general settings for Kaspersky Scan Engine.

HTTP mode configuration file (Linux)

The Kaspersky Scan Engine distribution kit for LInux contains a %distr_kit%/etc/kavhttpd.xml configuration file.

After installing Kaspersky Scan Engine, you can copy kavhttpd.xml to your preferred location:

HTTP mode configuration file (Windows)

The Kaspersky Scan Engine distribution kit for Windows contains a %distr_kit%\bin\kavhttpd.xml configuration file.

Parameters of the HTTP mode configuration file

Most elements of the configuration file have default values that are used when the element is absent. Elements that are present in the configuration file must not be empty, unless stated otherwise.

ServerSettings

The following parameters specify Kaspersky Scan Engine settings:

KSNSettings

The following parameters specify KSN settings:

KAVScanningSettings

The following parameters specify scanning settings for KAV SDK, which is a part of Kaspersky Scan Engine:

Set the scanning level of the advanced heuristic code analyzer to shallow (the Low level in the graphical user interface).

This element can be empty. In this case, the value of 0 is used.

The default value is KAV_O_M_PACKED | KAV_O_M_ARCHIVED | KAV_O_M_MAILBASES | KAV_O_M_MAILPLAIN | KAV_O_M_HEURISTIC_LEVEL_DETAIL.

DirectorySettings

The following parameters specify directory settings for KAV SDK, which is a part of Kaspersky Scan Engine:

UseHTTPProxy and HTTPProxy

The following parameters specify proxy server settings for KAV SDK, which is a part of Kaspersky Scan Engine. In the current version of KAV SDK, only the HTTP proxy type is supported.

UpdateSettings

The following parameters specify update settings for Kaspersky Scan Engine. For more information, see section "Configuring updating in HTTP mode".

FormatRecognizerSettings

The following parameters specify Format Recognizer settings.

Structure of the configuration file

Following is an example of the HTTP mode configuration file.

<Configuration>

 

<ServerSettings>

<ConnectionString>/tmp/.kavhttpd</ConnectionString>

<MaxIncomingConnectionsNum>100</MaxIncomingConnectionsNum>

<MaxHTTPSessionsNum>50</MaxHTTPSessionsNum>

<MaxTCPFileSize>100</MaxTCPFileSize>

<SessionTimeout>1000</SessionTimeout>

<Flags>KAV_SHT_ENGINE_KSN | KAV_SHT_ENGINE_APUF</Flags>

</ServerSettings>

 

<KSNSettings>

<UrlCheckTimeoutMs>20000</UrlCheckTimeoutMs>

<ObjectCheckOnDemandTimeoutMs>10000</ObjectCheckOnDemandTimeoutMs>

<CacheSizeKb>30720</CacheSizeKb>

</KSNSettings>

 

<KAVScanningSettings>

<ScannersCount>16</ScannersCount>

<ThreadsCount>32</ThreadsCount>

<QueueLen>1028</QueueLen>

<Flags>KAV_O_M_PACKED | KAV_O_M_ARCHIVED | KAV_O_M_MAILBASES | KAV_O_M_MAILPLAIN | KAV_O_M_HEURISTIC_LEVEL_DETAIL</Flags>

<Mode>KAV_SKIP</Mode>

</KAVScanningSettings>

 

<DirectorySettings>

<BasesPath>/home/bases</BasesPath>

<TempPath>/home/temp</TempPath>

<LicensePath>/home/license</LicensePath>

<LicensingMode>1</LicensingMode>

<ScanningPaths>

<ScanningPath></ScanningPath>

</ScanningPaths>

</DirectorySettings>

 

<UseHTTPProxy>1</UseHTTPProxy>

 

<HTTPProxy>

<url>myproxy.mycompany.com</url>

<port>3128</port>

<user>proxyuser</user>

<pass>proxypass</pass>

</HTTPProxy>

 

<UpdateSettings>

<DisableBackup>0</DisableBackup>

<UpdatePeriodMinutes>0</UpdatePeriodMinutes>

<UseOnlyCustomSources>0</UseOnlyCustomSources>

<UpdateSources>

<Source>[update source]</Source>

</UpdateSources>

</UpdateSettings>

 

<FormatRecognizerSettings>

<FormatsToSkipScanning>

<KAV_FF_GENERAL_TXT/>

<KAV_FF_GENERAL_CSV/>

<KAV_FF_AUDIO_WMA/>

</FormatsToSkipScanning>

</FormatRecognizerSettings>

 

</Configuration>

Page top