For me, the most obvious solutions are often highly obfuscated. Its true, common sense is not readily accessible for me. Why? I have no clue, but given the chance, I could probably come up with a very complicated reason why, so let’s skip that for now.

The obviousness I’d like to talk about today is /usr/share/doc/. I’ve often wished I could browse this with Iceweasel - and finally this morning I realized I could, so I am! I made a few adjustments to /etc/apach2/sites-available/default:

ExtFilterDefine gunzip mode=output cmd="/bin/gunzip"
<Files *.gz>
  SetOutputFilter gunzip
</Files>
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
  Options Indexes MultiViews FollowSymLinks
  AllowOverride None
  Order deny,allow
  AddType text/plain .gz
  Deny from all
  Allow from 127.0.0.0/255.0.0.0 ::1/128
  Allow from 192.168
</Directory>

Thanks:

Emulate mod_gunzip on Apache2

Apache compression