kb: how-to
Plesk for Linux
ABT: Group A
Applicable to:
- Plesk for Linux
Question
How to enable HTTP/2 support for Nginx in Plesk?
Answer
To enable HTTP/2 support for Nginx:
- Connect to the server using SSH
-
Enable HTTP/2 with the following command:
# plesk bin http2_pref enable
Note: During this step nginx web server will be tuned to use the TLS protocol with modern and secure ciphers, the whole web server configuration will be rebuilt, and all client's sites with 'SSL Support' will be moved to HTTP/2.
Note: HTTP/2 can be disabled with the following command:
# plesk bin http2_pref disable
Note: HTTP/2 support is a server-wide setting and cannot be set for specific domains only
Comments
5 comments
Hi Stefan Yakubov,
Should MPM mode on domain PHP Setting be changed to event instead of fork?
You may have a look on a discussion regarding this issue on my Plesk support ticket:
https://support.plesk.com/hc/en-us/requests/95013157
Hi, Ehud Ziegelman
It depends. Meanwhile event allows saving server's resources, prefork will provide more performance by utilizing additional separate child process for each request.
Hence basically, the decision should be made upon having the information about the average load.
Dear Stefan,
Thank you so much for helping out. I followed your instructions and will monitor the website.
Thank you so much
It is still very slow. Can you please check if your instructions where executed by me are well executed?
Hello, Ramna Nandalal
If a particular website works slowly, you can troubleshoot it following the article:
https://support.plesk.com/hc/en-us/articles/12377655126167
Please sign in to leave a comment.