Enable Compression On Plesk With Nginx
To enable compression on a Plesk server with Nginx handling static content, had to add the following to .htaccess:
|
1 2 3 4 5 |
<IfModule mod_deflate.c> <filesMatch "\.(js|css|html|php)$"> SetOutputFilter DEFLATE </filesMatch> </IfModule> |
This configuration is explained here: https://www.a2hosting.com/kb/developer-corner/apache-web-server/data-compression-using-the-mod-deflate-module And then in Plesk under: Subscriptions -> acme.com -> Websites & Domains -> Web Server




