How to enable mod_deflate and gzip compression in Apache HTTPD 2.2 and 2.4?

Solution Verified - Updated -


  • How to enable gzip compression on Apache HTTP server to reduce the response size.
  • We have Apache Web server running on RHEL 6.3. We would like to enable compression on web servers.
  • Apache Deflate content not working.


  • Red Hat JBoss Portal (EPP)
    • 5.x
  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.x
  • Apache HTTP server/mod_jk
    • 2.2
    • 2.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content