3

For testing purpose, I have been trying to switch my nginx server back to HTTP/1.1. I've been using HTTP/2 since it was first available (release 1.9.5).

According to the documentation and this release note, HTTP/2 is enabled simply by setting http2 is the listen directive in my serverblock.

However, it appears that removing "http2" doesn't force the server to use HTTP again.

Thoughts ?

Environment: Debian 8.5, nginx 1.11.1 compiled with LibreSSL 2.3.8

Thank you.

Florent_ATo
  • 201
  • 2
  • 8

1 Answers1

6

Based on Alexey Ten comment above (thank you !), I confirm that nginx requires to have no server(s) running HTTP/2 to get back to HTTP/1.1 (default).

In other words, setting up the directive http2 in one server will enable it for all of them.

Florent_ATo
  • 201
  • 2
  • 8
  • If AlexeyTen’s comment was the answer, they should be encouraged to post the comment as an answer. You should not self-answer unless you truly solved this issue on your own or in a way that is significantly different than what has been suggested. – Giacomo1968 Jun 30 '16 at 06:18
  • I fully agree, the credit goes to him. @Alexey, post your comment as the answer so I can approve it :) – Florent_ATo Jun 30 '16 at 06:27