Question: How do I enable GZIP compression? Print

  • shared hosting guide, GHFS cloud hosting, VPS hosting setup, GHFS web hosting, GHFS Hosting, best hosting provider, managed hosting services, domain and hosting tutorials, DNS configuration guide, hosting knowledge base, hosting control panel tutorial, SSD web hosting, how to register a domain, SSL installation guide, DNS records explained, MX record setup, email hosting setup, SSL certificate troubleshooting, how to transfer a domain, A record guide, CNAME configuration, secure VPS server, WordPress installation GHFS, WordPress migration guide, enable SSH access, Linux server commands, FTP upload guide, firewall configuration VPS, optimize WordPress performance, DDoS protection GHFS, MySQL database tutorial, malware removal guide, PHP configuration guide, fix internal server error, secure hosting best practices, website security tutorial, Nginx setup GHFS, install Docker on VPS, how to manage Linux VPS, Node.js on VPS, Python hosting tutorial, Redis installation, MySQL optimization, hosting troubleshooting guide, VPS hosting tutorial, cloud server configuration, SSL troubleshooting, disable root login SSH, secure website setup, Apache configuration guide, hosting performance optimization, cPanel tutorial, email deliverability guide, Plesk tutorial, SMTP configuration guide, server hardening tutorial
  • 0

Answer : 

GZIP compression reduces the size of your website’s files before they are sent to the visitor’s browser. This improves page loading speed and overall website performance. Most modern websites use GZIP to pass speed audits such as Google PageSpeed Insights or GTmetrix.

This article explains how to enable GZIP compression on GHFS Hosting using Plesk.


1. Check if GZIP Is Already Enabled

Before making changes, check your site with any online compression test tool or browser developer tools.

If compression is not enabled, proceed with the methods below.


2. Method 1: Enable GZIP in Plesk (Recommended)

Plesk allows enabling GZIP directly through the domain's web server settings.

Steps:

  1. Log in to Plesk

  2. Go to Websites & Domains

  3. Click Apache & nginx Settings

  4. Scroll to the nginx settings section

  5. Ensure the following options are enabled (if available):

  • “Compress files”

  • “Enable gzip compression”

  • “Gzip static files”

  1. Save the changes

After saving, GZIP should be active immediately.


3. Method 2: Enable GZIP Using .htaccess (Apache)

If your domain uses Apache (with or without nginx as a proxy), you can manually enable compression.

Add the following to your .htaccess file:

 
 
<IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/text AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/json AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xml+rss AddOutputFilterByType DEFLATE application/font-woff AddOutputFilterByType DEFLATE application/font-woff2 </IfModule>

Save the file and reload your website.


4. Method 3: Enable GZIP with nginx (Custom Rules)

If your domain is configured to use nginx rules, add the following to the Additional nginx directives in Plesk:

 
 
gzip on; gzip_disable "msie6"; gzip_vary on; gzip_proxied any; gzip_comp_level 6; gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss application/font-woff application/font-woff2;

Save settings to activate.


5. Method 4: Use a WordPress Plugin (If Applicable)

You can also enable GZIP through performance plugins such as:

  • WP Super Cache

  • W3 Total Cache

  • WP Rocket

  • LiteSpeed Cache (for LS-based servers)

These plugins apply GZIP rules automatically.


6. How to Verify GZIP Is Working

Use one of the following:

  • GTmetrix → “Enable GZIP” check

  • Google PageSpeed Insights → Diagnostics

  • Browser DevTools → Network → Check “Content-Encoding: gzip” or “br”

If the header appears, compression is active.


7. When to Contact GHFS Hosting Support

Contact support if:

  • GZIP does not activate after enabling

  • You are unsure where to apply directives

  • Your hosting plan restricts custom nginx rules

  • You experience errors after modifying .htaccess

Support can enable compression server-side or apply correct configuration for your plan.


Was this answer helpful?

« Back