Is there a command line command that can tell whether or not mod deflate is running on Apache?
相关问题
- Stop .htaccess redirect with query string
- .htaccess rule, redirecting old unexistent address
- How to deploy a web application Aurelia in an Apac
- Apache Directory Studio not opening
- PHP Empty $_POST
相关文章
- Apache+Tomcat+JK实现的集群,如果Apache挂了,是不是整个服务就挂了?
- How reliable is HTTP_HOST?
- Making a two way SSL authentication between apache
- UnicodeEncodeError when saving ImageField containi
- mod_rewrite only on GET
- jquery how to get the status message returned by a
- How do I debug errors that have no error message?
- Cloudfront cache-control headers missing
Like said, we need precisions.
If you're using debian, you can enable this mode like this.
That's all for linux debian environment.
I agree with the comments 'in what context' but to cover all bases (in addition to the other responses) you may also be able to run;
This should work on many servers that run Apache (especially Debian based ones), in the event the module is already enabled the command will tell you, if the module isn't enabled the command will enable it. It may also tell you that the module doesn't exist in which case you will need to install it.
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!
You'll want to make sure the following line is present (and not commented out) in your apache configuration (httpd.conf):
The commented out version looks like:
Then to have it deflate files as they are served, you'll need a line in your .htaccess, like this:
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.