Best way to log POST data in Apache?

前端 未结 8 1374
隐瞒了意图╮
隐瞒了意图╮ 2020-11-27 04:40

Imagine you have a site API that accepts data in the form of GET requests with parameters, or as POST requests (say, with standard url-encoded, &-separated POST data).

8条回答
  •  南方客
    南方客 (楼主)
    2020-11-27 05:02

    You can install mod_security and put in /etc/modsecurity/modsecurity.conf:

    SecRuleEngine On
    SecAuditEngine On
    SecAuditLog /var/log/apache2/modsec_audit.log
    SecRequestBodyAccess on
    SecAuditLogParts ABIJDFHZ
    

提交回复
热议问题