Plesk

Performance Booster fails to be enabled for Pleks hosted domain: “gzip” directive is duplicate

Symptoms

Performance Booster can not be enabled for a domain in Plesk > Tools & Settings > Performance Booster > example.com. The following error appears:

Last attempt to apply changes failed with the following error: Execution httpdmng has failed with exit code 1, stdout: , stderr: [2023-05-10 19:29:52.945] 254400:645b8e3ee7e41 ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/nginx-config' '-t'] with exit code [1] [2023-05-10 19:29:53.726] 254400:645b8e3ee7e41 ERR [panel] Apache config (16837217920.72297700) generation failed: Template_Exception: nginx: [emerg] "gzip" directive is duplicate in /var/www/vhosts/system/example.com/conf/vhost_nginx.conf:13 nginx: configuration file /etc/nginx/nginx.conf test failed

gzip compression was enabled earlier in Domains > example.com > Apache & nginx > Additoinal nginx directives as per the following article.

Cause

Performance Booster extension does not detect custom gzip directives. 

Resolution

Apply either of solutions below:

Exit mobile version