- #ENABLE GZIP COMPRESSION CPANEL WHM HOW TO#
- #ENABLE GZIP COMPRESSION CPANEL WHM UPDATE#
- #ENABLE GZIP COMPRESSION CPANEL WHM FULL#
You can use sites like gzip test to verify if all your WHM websites are using the mod_deflate configuration you specified. cpanel moddeflate moddeflate gzip compression whm When ever its about the web hosting then the most important thing which comes into mind is speed. Then hit the Restart button to apply the changes.
#ENABLE GZIP COMPRESSION CPANEL WHM UPDATE#
# For Olders Browsers Which Can't Handle CompressionīrowserMatch ^Mozilla/4 gzip-only-text/htmlīrowserMatch \bMSIE !no-gzip !gzip-only-text/htmlĪfter adding that code into your Apache configuration, make sure to hit Update button, so all the settings can be saved. ĪddOutputFilterByType DEFLATE text/javascriptĪddOutputFilterByType DEFLATE image/x-iconĪddOutputFilterByType DEFLATE image/svg+xmlĪddOutputFilterByType DEFLATE application/rss+xmlĪddOutputFilterByType DEFLATE application/javascriptĪddOutputFilterByType DEFLATE application/x-javascriptĪddOutputFilterByType DEFLATE application/xmlĪddOutputFilterByType DEFLATE application/xhtml+xmlĪddOutputFilterByType DEFLATE application/x-fontĪddOutputFilterByType DEFLATE application/x-font-truetypeĪddOutputFilterByType DEFLATE application/x-font-ttfĪddOutputFilterByType DEFLATE application/x-font-otfĪddOutputFilterByType DEFLATE application/x-font-opentypeĪddOutputFilterByType DEFLATE application/vnd.ms-fontobjectĪddOutputFilterByType DEFLATE font/opentype Edit “ Pre VirtualHost Include (All versions)” block.Īdd this code to your Pre VirtualHost include, as you see below.Home » Service Configuration » Apache Configuration » Include Editor.Replace 111.222.333.444 with your real server IP address. Move to WHM control panel login, access with your root credentials from:
#ENABLE GZIP COMPRESSION CPANEL WHM HOW TO#
This tutorial will show you how to activate Gzip compression for Apache on cPanel using mod_deflate.
#ENABLE GZIP COMPRESSION CPANEL WHM FULL#
If you have your own Dedicated Server or Cloud VPS with full root access to WHM, then you can enable Apache mod_deflate globally for all your cPanel users. Mod_deflate is the modern replacement for the old mod_gzip, which was used to compress – gzip web pages in the first versions of Apache like 1.3.x How can I enable Gzip on WHM for all my cPanel accounts / domains?ĬPanel comes by default with Apache 2.4, and on this kind of servers it’s pretty easy to enable Apache Gzip compression for all your server accounts. It allows you to save bandwidth and accelerate page speed response by deflating output filter from your server to be served compressed (gzipped) before it goes back to the client.
The full list of available types can be found on a server in the file /etc/nginx/mime.types.ĭisabling gzip compression for a domain in Plesk application/javascript, application/js, etc. If needed, add other file types in the gzip_types section, e.g. Gzip_types text/plain text/css application/javascript application/x-javascript text/xml application/xml application/rss+xml text/javascript image/x-icon image/bmp image/svg+xml Add the following directives to the Additional nginx directives field:.In Plesk, go to Domains > > Apache & nginx Settings.Enabling gzip compression for a domain in Plesk