Server protocol does not support http/2 in Infinityfree?

Username: epiz_29946686
Error message: HTTP ERROR 500

Hey, I wanted to change the HTTP version to 2.0, but as soon as I change the HTTP version in PHP it will not work and give an error.

Someone already made a topic about the HTTP version and the admin claimed it supports both Http/2 and Http/1.1. The default protocol is Http/1.1 and I cannot change it. Here is the source: http version

I have also changed the PHP version from 5.4 to 7.4 but still no success.

HTTP/2 works on InfinityFree. I use it on all of my sites.
You may need to go through your PHP code to look for any errors.


Hello, It seems like HTTP2 is disabled. Even the Server_Protocol is HTTP/1.0.

It most definitely supports HTTP/2. Please see this screenshot:

If you just type

Protocols h2 http/1.1

in you .htaccess it should work. If your browser does not support HTTP/2, it will use HTTP/1.1 as a fallback.

Can you share a URL so we can check?

EDIT: Looking at the screenshot you provided, I can faintly see that you are in the “curl” section. Curl on InfinityFree does not support HTTP/2. Nowhere in the phpinfo() does it say HTTP/2 is disabled.


My bad, i didn’t mention curl as the main topic. Thank you for your time.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.