Apache2 effectively streams pre-compressed content on my small Mac's installation. I'm able to use files like index.gz, textfile.gz, etc plus they all load fine inside a browser.

However when I attempt to produce exactly the same configuration on other Apache conditions like Ubuntu and CentOS installs, the gzip content never renders within the browser it certainly is downloaded like a file.

It is the AddEncoding directive config that been successful in streaming files in the OSX Apache install, particularly the alterations suggested here: http://stackoverflow.com/a/609051/1074464. Basically switch off individuals directives, it'll fail and defer to installing again. As with that example, the OSX install uses /etc/apache2/httpd.conf of these directives, however the other distros use /etc/apache2/apache2.conf and it is many includes from the virtual hosts sub files. I have made the AddType and AddEncoding updates within every place I'm able to think about including:


As you can tell in the shotgun trobleshoot and fix approach I am not obvious on where/if/with what order I have to specify these directives. I decided to covered all possible locations, but maybe there's another or possibly a directive I am not seeing around the Linux systems is walking around the ones I have set up?


After evaluating the significant and non-working installs on virtually personal files-by-file basis, I discovered this entry within the damaged Linux install's /etc/mime.types:

application/x-gzip              gz

Leaving comments resolved the problem.