Read this up, virtualmin uses mod_fcgid, where this mod has it's own OutputBuffer,

http://www.virtualmin.com/node/14618

You will need to recompile your own mod_fcgid and replace virtualmin's mod_fcgid for it to work, not to forget, setting OutputBufferSize to 0.