Symptoms
1. Plesk update 61 has been recently installed on Plesk server with previously enabled HTTP/2
2. Command # nginx -t
or cron tasks show error:
New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/plesk.conf.d/webmails/example.com_webmail.conf
Cause
Nginx directives for HTTP2 were updated by package vendor. Web server configuration was not regenerated during the update installation to avoid unplanned websites downtime.
Resolution
- Applying the solution on a server with thousands domains can increase temporary sites downtime. In that case, apply the solution during server maintenance hours.
- Log in to Plesk via SSH
- Trigger nginx configuration files regeneration:
# plesk bin http2_pref --disable
# plesk bin http2_pref --enable