HttpVersion

I have 2 websites in the same server (ngnix)

Both are behind Cloudflare

I’m trying to get HTTPVersion of visitors by this : echo $_SERVER[‘SERVER_PROTOCOL’];

The first website show me : HTTP/2 as value

The other website show me : HTTP/1.1 as value

Both test from same computer/Browser

I saw this article : https://support.cloudflare.com/hc/en-us/articles/200168076-Are-the-HTTP-2-or-SPDY-protocols-supported-between-Cloudflare-and-the-origin-server-#6ncFUWOVRaVtPzYN1euBIC

Blockquote Connections from Cloudflare’s Edge to your origin server(s) only support HTTP/1.1.

But how come the first website show HTTP/2 ??

Are you sure that the first log showing HTTP/2 is from Cloudflare?

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