Plesk for Linux
kb: how-to
ABT: Group B
Applicable to:
- Plesk for Linux
Question
How to enable HTTP/2 Push with Nginx?
Answer
HTTP/2 Push Nginx feature was implemented in Plesk Onyx 17.8 MU#34 and it can be enabled adding custom Nginx directives as follows:
-
Connect to the server via SSH
-
Make sure that HTTP/2 is enabled:
# plesk bin http2_pref enable
-
Go to Domains > example.com > Apache & Nginx Settings > Add the following directive in Additional Nginx directives section:
CONFIG_TEXT: http2_push_preload on;
add_header Link "</wp-includes/css/dist/block-library/style.min.css>; as=style; rel=preload;";
Comments
0 comments
Please sign in to leave a comment.