System Status
Buy Now
  • Email & Apps
  • Office 365
Login
  • MyRackspace Portal
  • Cloud Control Panel
  • Rackspace Webmail Login
  • Cloud Office Control Panel
  • Support Home
  • How-To
  • Developer Documentation
  •  Blogs 
    • Expert Insights Tech Blog
    • Rackspace Blog
    • Solve: Thought Leadership

Support Network

End-to-End Multicloud Solutions.   Solving Together.ā„¢   Learn more at Rackspace.com

How–To Home

Cloud Servers

  • Introduction
  • FAQ
  • All Articles

Disable HTTP compression on Apache servers

Last updated on:  2021-04-29

Authored by:  Chadwick Sterling


This article explains how to check if your ApacheĀ® server has compressed HTTP. It also explains how to disable this compression.

Test your server for HTTP compression

  1. Connect to the server by using OpenSSL.

  2. Add the following request to the header to check for HTTP compression:

    Accept-Encoding:compress,gzip
    

If you have enabled compression, the server responds by compressing the page. If the server does not support compression, it displays the page in plain text.

Disable HTTP compression by using Ubuntu or Debian operating systems

To disable the compression by using DebianĀ® or the UbuntuĀ® operating system, use the following steps:

  1. Disable the module mod_deflate by using the following command:

    $ sudo a2dismod deflate
    
  2. Restart the server:

    $ sudo /etc/init.d/apache2 restart
    

Disable HTTP compression by using Red Hat or CentOS operating systems

To disable the compression by using Red HatĀ® or CentOSĀ®, use the following steps:

  1. Access the main configuraton file:

    $ sudo nano /etc/httpd/conf/httpd.conf
    
  2. Comment the following line so the system can execute it:

    LoadModule deflate_module modules/mod_deflate.so
    
  3. Restart the server:

    $ sudo /etc/init.d/httpd restart
    

Use the Feedback tab to make any comments or ask questions. You can also start a conversation with us.Ā 

Share this information:

©2020 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License

See license specifics and DISCLAIMER

About Rackspace
  • About
  • Customer Stories
  • Events
  • Programs
Blogs
  • The Rackspace Blog
  • Expert Insights Tech Blog
  • Solve: Thought Leadership
  • News
  • Contact Information
  • Legal
  • Careers
Site Information
  • Style Guide for Technical Content
  • Trademarks
  • Privacy Statement
  • Website Terms
Support Network
  • Support Network Home
  • Rackspace How-To
  • API Documentation
  • Developer Center
  • Ā©2020 Rackspace US, Inc.