Ubuntu – I can’t get the dump_io module working

apache-2.2loggingUbuntu

To debug my webapp behaviour behind some weird network, I need to dump all HTTP request coming to the Apache2 server (on a standard Ubuntu). So I tryed to activate the dump_io module :

a2enmod dump_io

and I checked that the module was correctly loaded (after reload) by :

# apache2ctl -t -D DUMP_MODULES | grep dumpio
dumpio_module (shared)

I added the following in the <VirtualHost> part of my site :

LogLevel debug
DumpIOInput On

Then service apache2 restart and tail -f /var/log/apache2/error.log

but nothing is showing…

I tryed putting the directive at global level (apache2.conf), putting all virtual hosts LogLevel to debug (as suggested in Why can't I get Apache2 mod_dumpio working under Lucid Lynx Ubuntu?) but no luck…

The only thing I'm getting related to my setInfo request is the following line (in error.log) which does not show if I set loglevel to warn, but shows event if I don't declare the DumpIOInput.

[Tue Nov 06 00:21:13 2012] [debug] mod_deflate.c(615): [client 178.251.23.193] Zlib: Compressed 494 to 284 : URL /setInfo

So, what can I do next ? I'm pretty sure that I have incoming requests on my virtualhost, because I get the following error (which is the one I'm trying to clarify and debug) :

[Tue Nov 06 09:24:42 2012] [error] [client 178.251.23.138] no acceptable variant: /path/api/setInfo

Best Answer

1> To configure mod_dumpio you need to enable dump_io.

$ sudo a2enmod dump_io

2> in apache2.conf file write this line

LogLevel dumpio:trace7
DumpIOInput On
DumpIOOutput On

3) Then restart apache server