After putting it behind a reverse proxy, our phpmyadmin setup started showing empty pages.
After one morning of deep cursing, this is what happened:
- the web server where phpmyadmin runs generates compressed html pages;
- mod_proxy_html tries to edit them, and "normalises" them, adding
<html>...</html>headers around the compressed data; - Firefox fails to decompress because there is extra garbage, and shows a blank page instead of complaining.
Other things to note:
- firebug showed 4kb of data downloaded, but the page sources were empty;
- using curl to get the pages would show the data.
How I found it:
nc -l -p 444;- configure mod_proxy to send connections to netcat instead of the web browser;
- compare curl headers and Firefox headers;
- add the headers from Firefox to curl one by one, until the output breaks.
How to solve it:
a2enmod deflate- Replace
SetOutputFilter proxy-htmlwithSetOutputFilter DEFLATE;proxy-html;INFLATEso that we always havemod_proxy_htmlwork on decompressed HTML.