Articles in this section

How to enable HTTP/2 support for Nginx in Plesk?

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:

  1. Connect to the server using SSH
  2. 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

Additional information

HTTP/2 Support in Plesk

Was this article helpful?

Comments

5 comments
Date Votes
  • 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

    0
  • 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.

    0
  • Dear Stefan,

     

    Thank you so much for helping out. I followed your instructions and will monitor the website.

    Thank you so much

     

    0
  • It is still very slow. Can you please check if your instructions where executed by me are well executed?

    0
  • 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

    0

Please sign in to leave a comment.