HTTP2 enabled in conf but not effective

Keywords: WordPress - Microsoft Azure - Technical issue - Secure Connections (SSL/HTTPS)

bnsupport ID: f5c7a9ee-9468-671c-2304-9f9638e4cded

bndiagnostic output:

? Apache: Found possible issues
? Connectivity: Found possible issues
https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/
https://docs.bitnami.com/general/faq/administration/use-firewall/

bndiagnostic failure reason: The suggested guides are not related with my issue

Description:
Hello,

i am using wordpress on apache and i tried to enable http2 as per config: https://docs.bitnami.com/bch/apps/wordpress/administration/enable-http2-apache/

the site is up&running but the communication is still in http/1.1 .

Checked the apache error_log and access_log without success.

Is there something to check?

Thank you.

Hello @bddagostino,

I checked your site and you are indeed using HTTP/2. As you can see below, the HTTP/1.1 is inaccessible and it redirects to its HTTP/2 counterpart:

$ curl -LI www.yourdomain.com
HTTP/1.1 301 Moved Permanently
Date: Wed, 17 Nov 2021 11:15:14 GMT
Server: Apache/2.4.50 (Unix) OpenSSL/1.1.1d
Location: https://yourdomain.com/
Content-Type: text/html; charset=iso-8859-1

HTTP/2 200
x-powered-by: PHP/7.4.24
content-security-policy: upgrade-insecure-requests
link: <https://yourdomain.com/wp-json/>; rel="https://api.w.org/", <https://yourdomain.com/wp-json/wp/v2/pages/1286>; rel="alternate"; type="application/json", <https://yourdomain.com/>; rel=shortlink
strict-transport-security: max-age=63072000; includeSubDomains
content-type: text/html; charset=UTF-8
date: Wed, 17 Nov 2021 11:15:14 GMT
server: Apache/2.4.50 (Unix) OpenSSL/1.1.1d

To compare, in a stack using HTTP/1.1 you get:

$ curl -LI STACK_IP
HTTP/1.1 200 OK
Date: Wed, 17 Nov 2021 11:15:32 GMT
Server: Apache/2.4.51 (Unix) OpenSSL/1.1.1d
X-Powered-By: PHP/7.4.26
Link: <http://34.65.240.209/wp-json/>; rel="https://api.w.org/"
Content-Type: text/html; charset=UTF-8

Regards,
Francisco de Paz

Dear @fdepaz ,

i also checked my site with the same command and it i have the response in http/1.1 :slight_smile:

C:\Users\admin>curl -LI mysite.com
HTTP/1.1 301 Moved Permanently
Date: Thu, 18 Nov 2021 08:33:54 GMT
Server: Apache/2.4.50 (Unix) OpenSSL/1.1.1d
Location: https://mysite.com/
Content-Type: text/html; charset=iso-8859-1

HTTP/1.1 200 OK
Date: Thu, 18 Nov 2021 08:33:55 GMT
Server: Apache/2.4.50 (Unix) OpenSSL/1.1.1d
X-Powered-By: PHP/7.4.24
Link: <https://mysite.com/wp-json/>; rel="https://api.w.org/", <https://mysite.com/wp-json/wp/v2/pages/1286>; rel="alternate"; type="application/json", <https://mysite.com/>; rel=shortlink
Content-Security-Policy: upgrade-insecure-requests
Strict-Transport-Security: max-age=63072000; includeSubDomains
Upgrade: h2,h2c
Connection: Upgrade
Content-Type: text/html; charset=UTF-8

could you recheck please?

Thanks.

Hello @bddagostino,

I checked your stack’s IP and your domain with/without www and HTTPS, all of them returning a HTTP/2 200 status. Just to be sure, the domain I’m checking has the form of coxxxxxxxxxxts.com.

Regards,
Francisco de Paz

Hello,

sorry for the dalayed reply.

We found that our firewall was actively blocking the http/2.

Our bad, thank you very much.

Hello @bddagostino,

No problem, glad to help! As this is now marked as solved we’ll proceed to close this issue. If you have any other issues in the future, please open a new ticket.

Regards,
Francisco de Paz