mod_defalte in virt 5

How do i enable http compression in virtualmin on a default basis?

Status: 
Active

Comments

Howdy -- what distro/version is it that you're using there?

centos 6.x 64 bit.

Okay, what you would need to do is verify that a line like this exists in the /etc/httpd/conf/httpd.conf file:

LoadModule deflate_module modules/mod_deflate.so

If it doesn't, you would need to add it.

Exactly how to use mod_deflate varies depending on your needs, but a basic example of how to start would be to add lines like the following to your Apache config:

AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/xml