How do I Enable Gzip compression in Dedicated Server ?


Error: Your Requested widget " bcn_widget-2" is not in the widget list.
  • [do_widget_area colormag_advertisement_above_the_footer_sidebar]
    • [do_widget id="custom_html-10"]
    • [do_widget id="custom_html-11"]
    • [do_widget id="custom_html-13"]
    • [do_widget id="colormag_125x125_advertisement_widget-2"]
    • [do_widget id="text-15"]
    • [do_widget id="custom_html-9"]
    • [do_widget id="custom_html-12"]
  • [do_widget_area colormag_contact_page_sidebar]
    • [do_widget_area colormag_error_404_page_sidebar]
      • [do_widget_area colormag_footer_sidebar_four]
        • [do_widget id="custom_html-3"]
        • [do_widget id="text-7"]
      • [do_widget_area colormag_footer_sidebar_full_width]
        • [do_widget_area colormag_footer_sidebar_one]
          • [do_widget id="custom_html-6"]
          • [do_widget id="custom_html-7"]
          • [do_widget id="custom_html-8"]
          • [do_widget id="text-38"]
          • [do_widget id="text-3"]
          • [do_widget id="text-4"]
        • [do_widget_area colormag_footer_sidebar_one_upper]
          • [do_widget_area colormag_footer_sidebar_three]
            • [do_widget id="custom_html-4"]
            • [do_widget id="text-6"]
          • [do_widget_area colormag_footer_sidebar_three_upper]
            • [do_widget_area colormag_footer_sidebar_two]
              • [do_widget id="custom_html-5"]
              • [do_widget id="text-5"]
            • [do_widget_area colormag_footer_sidebar_two_upper]
              • [do_widget_area colormag_front_page_area_beside_slider]
                • [do_widget_area colormag_front_page_content_bottom_section]
                  • [do_widget_area colormag_front_page_content_middle_left_section]
                    • [do_widget_area colormag_front_page_content_middle_right_section]
                      • [do_widget_area colormag_front_page_content_top_section]
                        • [do_widget_area colormag_front_page_slider_area]
                          • [do_widget_area colormag_front_page_top_full_width_area]
                            • [do_widget id="text-17"]
                          • [do_widget_area colormag_header_sidebar]
                            • [do_widget id="custom_html-2"]
                            • [do_widget id="text-8"]
                            • [do_widget id="text-27"]
                            • [do_widget id="text-23"]
                          • [do_widget_area colormag_left_sidebar]
                            • [do_widget id="text-19"]
                          • [do_widget_area colormag_right_sidebar]
                            • [do_widget id="text-13"]
                            • [do_widget id="search-2"]
                            • [do_widget id="colormag_300x250_advertisement_widget-3"]
                          • [do_widget_area widgets_for_shortcodes]
                            • [do_widget id="breadcrumb_navigation_widget-5"]
                            • [do_widget id="text-16"]
                            • [do_widget id="text-20"]
                            • [do_widget id="text-24"]
                            • [do_widget id="text-25"]
                            • [do_widget id="bcn_widget-2"]
                            • [do_widget id="text-28"]
                            • [do_widget id="text-29"]
                            • [do_widget id="text-30"]
                            • [do_widget id="text-31"]
                            • [do_widget id="text-32"]
                            • [do_widget id="text-33"]
                            • [do_widget id="text-34"]
                            • [do_widget id="text-35"]
                            • [do_widget id="text-37"]
                          • [do_widget_area wp_inactive_widgets]
                            • [do_widget id="text-12"]
                            • [do_widget id="colormag_300x250_advertisement_widget-4"]
                            • [do_widget id="recent-posts-2"]
                            • [do_widget id="recent-comments-2"]
                            • [do_widget id="archives-2"]
                            • [do_widget id="meta-2"]
                            • [do_widget id="pages-3"]
                            • [do_widget id="text-22"]
                          Linux Dedicated Server have the facility to enable the Gzip compression by adding some parameters in the proper place.  Gzip compression gives the better speed for website pages by compressing it.


                          Share This Now: [addtoany]

                          Watch Reseller Hosting Video Tutorial



                          Procedure

                          Enabling Gzip compression In Dedicated Server

                          To Enable the Gzip compression in Dedicated Server, please follow the below procedure,

                          1. Login to WHM Panel

                          2. Edit Apache Configuration Pre VirtualHost

                          Home » Service Configuration » Apache Configuration » Include Editor

                          and edit Pre VirtualHost Include (All versions)

                          3. Update Pre VirtualHost

                          Add the following settings in Pre VirtualHost editor and update it.

                          ===================================================
                          # Insert filter
                          SetOutputFilter DEFLATE

                          # Netscape 4.x has some problems…
                          BrowserMatch ^Mozilla/4 gzip-only-text/html

                          # Netscape 4.06-4.08 have some more problems
                          BrowserMatch ^Mozilla/4.0[678] no-gzip

                          # MSIE masquerades as Netscape, but it is fine
                          BrowserMatch bMSIE !no-gzip !gzip-only-text/html

                          # Don’t compress images
                          SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
                          # Make sure proxies don’t deliver the wrong content
                          Header append Vary User-Agent env=!dont-vary
                          =====================================================

                          4.  Restart Apache and Verify

                          After this , restart the webserver then check in the server domain whether it is enabled (or) not via the URL “checkgzipcompression.com

                          Screen Shots

                          Refer Screen Shots

                          Troubleshooting FAQs

                          roubleshooting FAQs Not Available

                          How to restrict the site preview URL for the particular domain alone ?

                          Solution :

                          To restrict the site preview URL for the each domain login to the server WHM and go to the path,

                          Home » Security Center » Apache mod_userdir Tweak

                          Here you can able to see all hosted domains in your dedicated server. In this there is a column called ” Exclude Protection ” . check the check box for the particular domain to which you want to enable. Hence for that domain alone you can able to check the site preview with the IP address of the server.

                          Downloads

                          Related Downloads

                          Related Articles