Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to check mod_deflate is enabled in apache?

Is there a command line command that can tell whether or not mod deflate is running on Apache?

like image 541
omg Avatar asked Jun 09 '09 13:06

omg


People also ask

What is Apache mod_deflate?

The mod_deflate module provides the DEFLATE output filter that allows output from your server to be compressed before being sent to the client over the network.

How mod_ deflate works?

Some of that data – such as javascript files, css files, and php files – can actually be compressed into smaller sizes before they are delivered back to the visiting client or browser at the smaller size. The visitor can now have a more optimized browsing experience. This is where mod_deflate comes in.


2 Answers

It is probably to late, but here we go.

mod_deflate is enabled per default. To be sure, try

debian / ubuntu: apache2ctl -t -D DUMP_MODULES

CentOS: httpd -t -D DUMP_MODULES

and look if there is a deflate_module.

like image 95
Juri Glass Avatar answered Sep 16 '22 23:09

Juri Glass


You can verify mod_deflate with this site:

mod_deflate test

My site gets a nice little report that shows I'm saving 81% of my bandwidth!

like image 28
dicroce Avatar answered Sep 17 '22 23:09

dicroce