Apache mod_dumpio log post data - xiuyanduan/xiuyanduan.github.io GitHub Wiki

title: Add post data to Apache log by mod_dumpio
date: 2015-12-22
tags:
- linux
- Apache
---

Tested in Ubuntu 14.04 LTS Apache/2.4.7 Reference

Enable mod_dumpio module

sudo a2enmod dump_io
/etc/init.d/apache2 force-reload

Configuration

vim etc/apache2/apache2.conf

Enable dumping of all input data:

DumpIOInput On
DumpIOOutput On
LogLevel dumpio:trace7
/etc/init.d/apache2 restart
tail -f /var/log/apache2/error.log

Difference of mod_dumpio: apache2.2 apache2.4