Plesk for Linux
kb: technical
Symptoms
-
The following error when testing the NGINX configurations for syntax errors:
# nginx -t
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/plesk.conf.d/vhosts/example.com.conf:7 - Custom templates are in use
Cause
The custom templates refer to the deprecated directives.
Resolution
- Connect to the server via SSH
- Remove or correct the custom templates under
/usr/local/psa/admin/conf/templates/custom/domain/ -
Disable the http2_pref:
# plesk bin http2_pref --disable
-
Re-enable it:
# plesk bin http2_pref --enable
Comments
Please sign in to leave a comment.