• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question HTTP2 enabled, Apache still using 1.0

Oldiesmann

Basic Pleskian
At the suggestion of the Advisor extension, I enabled HTTP2 on my server. However, I'm still seeing requests in the logs using HTTP/1.0. Example:

GET /calendar/?viewmonth;year=2022;month=4;day=6; HTTP/1.0

Do I need to reconfigure/rebuild something to get Apache to use HTTP2 instead?
 
I think that Apache in Plesk does not support HTTP/2. The support requires Nginx, and in that case only what is delivered by Nginx uses HTTP/2. Please see the documentation here
HTTP/2 Support in Plesk
and a feature request here
Support for HTTP/2 on APACHE (only) without using nginx as proxy! And Server Push!

Hello Peter, when following the Guide of Torsten, then HTTP/2 is working with Apache. Network Tab on Chrome shows h2. Are there other Configs that i have to follow?

  • just create a file http2.conf in the directory `/etc/apache2/conf-available` with this content:
    ```
    Protocols h2 h2c http/1.1
    ```
    Enable this new configuration: `a2enconf http2`
    and reload it: `systemctl reload apache2`
 
Hello. Enabling HTTP / 2 with apache is simple. Make sure you are on the latest possible version of apache (httpd) 2.4 as well as your OpenSSL version 1.1.1 and above. You enable HTTP / 2 as follows (ubuntu):

a2enmod http2
nano /etc/apache2/conf-available/http2.conf (add add the content contained in quotes "Protocols h2 h2c http/1.1")
a2enconf http2
systemctl restart apache2

Please note that HTTP / 2 only works with HTTPS (Litespeed works with HTTP if you enable this setting in the control panel at port 7088).

If you want to be more sure, add the quotes above to apache2.conf again and proceed to restart apache2. Congratulations on having apache2 with http2 on your server.

1599099978923.png
 
Last edited:
Hello. Enabling HTTP / 2 with apache is simple. Make sure you are on the latest possible version of apache (httpd) 2.4 as well as your OpenSSL version 1.1.1 and above. You enable HTTP / 2 as follows (ubuntu):

a2enmod http2
nano /etc/apache2/conf-available/http2.conf (add add the content contained in quotes "Protocols h2 h2c http/1.1")
a2enconf http2
systemctl restart apache2

Please note that HTTP / 2 only works with HTTPS (Litespeed works with HTTP if you enable this setting in the control panel at port 7088).

If you want to be more sure, add the quotes above to apache2.conf again and proceed to restart apache2. Congratulations on having apache2 with http2 on your server.

View attachment 17492
Hi!

As far as I fulfill the criteria (Apache 2.4, OpenSSL 1.1.1), I am going to try this on Debian 9.13 / Plesk Obsidian 18.0.34.

Can you tell me how to go back in case it does not work?
If it does, that will be great for me to use HTTP/2 without Nginx...

Thanks for your help!
Lrnt
 
Hi!

As far as I fulfill the criteria (Apache 2.4, OpenSSL 1.1.1), I am going to try this on Debian 9.13 / Plesk Obsidian 18.0.34.

Can you tell me how to go back in case it does not work?
If it does, that will be great for me to use HTTP/2 without Nginx...

Thanks for your help!
Lrnt
Well this does not work. HTTP1.1 always...
 
Back
Top