您的位置:首页 > 其它

modsecurity系列二:主文件配置

2016-04-19 15:03 375 查看
Main configuration directives

主要的有如下几个:

SecArgumentSeparator Sets the application/x-www-form-urlencoded parameter separator

SecCookieFormat Sets the cookie parser version

SecDataDir Sets the folder for persistent storage

SecRequestBodyAccess Controls request body buffering

SecRequestBodyInMemoryLimit Sets the size of the per-request memory buffer

SecRequestBodyLimit Sets the maximum request body size ModSecurity will accept

SecRequestBodyNoFilesLimit Sets the maximum request body size, excluding uploaded files

SecResponseBodyAccess Controls response body buffering

SecResponseBodyLimit Specifies the response body buffering limit

SecResponseBodyLimitAction Controls what happens once the response body limit is reached

SecResponseBodyMimeType Specifies a list of response body MIME types to inspect

SecResponseBodyMimeTypesClear Clears the list of response body MIME types

SecRuleEngine Controls the operation of the rule engine

SecTmpDir Sets the folder for temporary files

日志开关:

Our default configuration will use audit logging only for the transactions that are relevant,which means those that have had an error or a warning reported against them. Other possiblevalues for SecAuditEngine are On (log everything)
and Off (log nothing).

# Log only what is really necessary.

SecAuditEngine RelevantOnly
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  modsecurity