Tuesday, March 08, 2011

Use mod_dumpio, mod_logio in Apache server

Mod_dumpio and mod_logio enables the logging for http request/response and the size of the request/resposne.
However, they'll not be configured by default installation procedures.

Here are steps to use them:

1. download the apache source files, and upload it to linux server.
2. go to existing apache bin directory, run the following commands:
sudo ./apxs -c /tmp/apache/httpd-2.0.64/modules/loggers/mod_logio.c

sudo ./apxs -i -a -n mod_logio /tmp/apache/httpd-2.0.64/modules/loggers/mod_logio.la

3. change the httpd.conf file and make sure the module is loaded and the logging format is changed.