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  [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.
Performance Booster extension does not detect custom gzip directives.
Apply either of solutions below:
- Remove the directives added earlier as per article
- Keep Performance Booster disabled for the domain in question.