We help IT Professionals succeed at work.
Get Started
Troubleshooting Question

Nginx and http/2

Last Modified: 2020-11-13
Hello, so I've set up my first Centos 8 server with Nginx. I have a good experience with Apache, but Nginx is new to me.

I am just in the testing stages, but I have a problem. I want to use http/2 with this server. I thought everything was setup correctly (Nginx built with the correct module, http2 after the listen command in the server configuration block and so on) but I have contradictory results.

If I check this test website: https://test.dmptech.it/
with Firefox or Chrome, they tell me the protocol is http/1.1.

If I test it with this https://tools.keycdn.com/http2-test it says it's http/2.
It actually says: HTTP/2 protocol is supported. ALPN extension is supported.

If I do a
 curl -I -L https://test.dmptech.it
I get this:
HTTP/2 200
server: nginx/1.16.1
date: Sat, 31 Oct 2020 19:46:35 GMT
content-type: text/html
content-length: 25
last-modified: Sat, 31 Oct 2020 19:41:34 GMT
etag: "5f9dbdee-19"
accept-ranges: bytes
So, who's actually right and is there an explanation for this? Thanks.
Watch Question
This problem has been solved!
Unlock 1 Answer and 31 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant

An Experts Exchange subscription includes unlimited access to online courses.

Get Started
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE