Questions tagged [http2]

HTTP/2 (originally named HTTP/2.0) is a major revision of the HTTP network protocol used by the World Wide Web.

Filter by
Sorted by
Tagged with
48 votes
3 answers
73k views

Use HTTP/2.0 between nginx reverse-proxy and backend webserver

I use nginx as a reverse-ssl-proxy in front of a backend webserver that is capable of doing HTTP/2.0. I noticed that nginx proxies the requests to the backend server via HTTP/1.1 rather than HTTP/2.0....
S1lentSt0rm's user avatar
  • 1,049
14 votes
6 answers
21k views

Debian jessie nginx with openssl 1.0.2 to use ALPN rather than NPN

I am running debian jessie on my server and recently upgraded to new nginx web server with http/2 support (nginx 1.10). As today, it works great and webserver is delivering content with http2 protocol....
Juraj Nemec's user avatar
12 votes
1 answer
9k views

nginx with nginx communication using http2 without ssl

I've nginx-proxy and nginx-server docker containers. client browser < > nginx-proxy is http2 and 443 via proxy_pass. nginx-proxy < > nginx-server is http1 and I'd like to move it to ...
user avatar
12 votes
1 answer
2k views

How can you gracefully restart Apache without disconnecting SSL connections?

We are trying to reload Apache gracefully using a command such as: apache2ctl -k graceful This works as expected for HTTP users and the Apache config is reloaded without affecting users of the ...
jones's user avatar
  • 306
11 votes
3 answers
20k views

Why is ALPN not supported by my server?

I'm currently running a Ubuntu 16.04.1 LTS server using NGINX 1.11.9 and openssl 1.0.2g. According to everything I've read, these versions should support ALPN, yet when I run a test on KeyCDN's HTTP/...
Godwin's user avatar
  • 401
10 votes
1 answer
17k views

Windows Server 2012 R2 IIS 10 / HTTP/2

We're currently running Windows Server 2012 R2 for our web server, using IIS 8.5. Is it possible to upgrade that to IIS 10 for HTTP/2 or otherwise enabled HTTP/2 on our current install? Thanks, Matt.
Matt Cowley's user avatar
9 votes
1 answer
7k views

Is it worthwhile to setup HTTP 2 reverse proxy in front of HTTP 1 server?

Say I setup Nginx as a reverse proxy in front of IIS and enable HTTP/2 support on Nginx for browsers. Would I see any benefits?
Kugel's user avatar
  • 213
8 votes
2 answers
17k views

Why http2 doesn't work on my Apache/2.4.29?

I have tried to enable http2 module on Apache/2.4.29 which I'm running on Ubuntu 16.04, but it seems that it doesn't work. I did like this: sudo a2enmod http2 And then active individually by adding:...
user134969's user avatar
8 votes
1 answer
5k views

Should we use Apache's HTTP2?

I wanted to use HTTP2 with Apache 2.4.16 (probably need to upgrade to 2.4.17) and stumbled across this comment on the official Apache Page. Warning This module is experimental. Its behaviors, ...
David Garus's user avatar
7 votes
2 answers
14k views

Terminate HTTP/2 on AWS ALB

AWS Application Load Balancer ALBs support HTTP/2, and one would think we could switch over to these and immediately enjoy the benefits of HTTP/2. Is there any possible a way to terminate HTTP/2 on ...
Sankalp Sharma's user avatar
7 votes
2 answers
19k views

HTTP/2 on CentOS 7 on Apache with PHP7

After some research I cannot find answer for: How to update Apache/httpd to newest version to use HTTP/2 protocol on my VPS. I'm using PHP7 & my server based on Apache - CentOS 7. No package ...
Damian Bartelmus's user avatar
7 votes
1 answer
3k views

nginx conf: http2 module not working in Chrome in ubuntu 18.04

I'm trying to setup the http2 module in nginx on a fresh Ubuntu 18.04 vps. Http2 works fine in Firefox (I checked the response headers). Some third party websites indicate that my http2 configuration ...
ling's user avatar
  • 303
7 votes
2 answers
4k views

Nginx HTTP2 IOS 11 not working

i have problems with HTTP2 protocol on my NGINX server, this is my configuration listen 443 ssl http2; server_name adomain.com; root /var/www/project; limit_req zone=one burst=60 nodelay; ...
Leonel Franchelli's user avatar
6 votes
1 answer
12k views

why Chrome browser doesn't recognize my nginx http2 server?

I setup my Nginx conf as per Digital Ocean paper, and now http2 is available... But in Chrome (Version 54.0.2840.98 (64-bit)) Dev tool, it's always on HTTP 1/1 : NAME METHOD STATUS ...
erwin's user avatar
  • 171
6 votes
1 answer
9k views

What is the request line for HTTP/2?

For HTTP/0.9: GET / For HTTP/1.0: GET / HTTP/1.0 For HTTP/1.1: GET / HTTP/1.1 Host: example.com What is the request line for HTTP/2? Is it something like: GET / HTTP/2.0 Or HTTP/2?
ImBoredAllTheTime's user avatar
4 votes
1 answer
4k views

How to build Apache httpd 2.4.20 on CentOS 7 with http2 support?

I've spent nearly a day trying to make Apache httpd builds with ALPN and http2 support for EL6 and EL7 for my company and society, as I previously did for NGINX (Built statically against OpenSSL 1.0....
Alexander Gerasimov's user avatar
4 votes
2 answers
5k views

How to limit TCP connections with nginx for HTTP/2?

I want to use nginx as a https frontend and I'm looking for a way to limit TCP connections. These limits should be based on the remote IP addresses and work for HTTP/1.1 as well as HTTP 2. For HTTP/1....
Brutus's user avatar
  • 171
4 votes
1 answer
3k views

Is HTTP/2 actually faster in real world?

I understand all the benefits of HTTP/2, however, are there proven apples to apples comparisons to show it's speed advantage? Akamai has a page put up for this purpose, but it seems HTTP/2 at best ...
AngryHacker's user avatar
  • 2,887
4 votes
2 answers
5k views

Nginx cannot show many static images when using HTTP/2

One of my WordPress sites has a lot of static images (think at least 20 per page) and after I enable HTTP/2, the images in the lower part start to appear as broken (crossed out, like in images with ...
Manuth Chek's user avatar
4 votes
0 answers
7k views

Why is IIS 10 serving content using HTTP 1.1 instead of HTTP 2? [duplicate]

I have a base install of IIS 10 on Windows Server 2016 which I have setup my basic web application on. The application website uses HTTPS. For some reason, when browsing from Chrome 63, the content ...
Jimbo's user avatar
  • 309
3 votes
1 answer
3k views

Getting HTTP/2 Working on Apache 2.4.29 on Debian 8

I am trying to update my apache2 (Apache/2.4.29 (Debian 8)) server to support http2 but after enabling http2 with following code, it does not work because of mpm_prefork does not support http2 <...
Rinav's user avatar
  • 131
3 votes
2 answers
3k views

Apache mod_proxy with Tomcat 8.5 using http2

Is it possible to use mod_proxy in front of an Apache Tomcat 8.5 with the http2 protocol? If yes it would be nice to see an example configuration. Edit Specifically: Is it possible and recommended ...
yglodt's user avatar
  • 245
3 votes
1 answer
370 views

Web server CPU Utilization slowly increasing with LAMP stack?

I made a ton of changes to my website this year and noticed that my CPU Utilization has been gradually increasing for a couple of months (it slowly went from around 0% to 60% in about 2 months). After ...
user1413341's user avatar
3 votes
2 answers
6k views

Nginx - enable download of multimedia file instead of streaming?

I am trying to enable multimedia (Mp3 and Mp4) file downloads on my newly setupped nginx/1.17.6 using HTTP2 server but the file started streaming instead of downloading. Here is my nginx.conf file: ...
user343272's user avatar
3 votes
1 answer
3k views

Enabling HTTP/2 makes the site much slower in nginx

After enabling HTTP/2 to my website, I found that the performance dropped dramatically. The download speed becomes much slower, and large image requests block other API calls. Here is an example ...
xmcp's user avatar
  • 131
3 votes
1 answer
571 views

Firefox periodically doesn't download CSS files from nginx server over HTTP2 with SSL

When I use Firefox to access one of my sites with a lot of CSS files, periodically, not all the CSS files are downloaded Looking in the Developer Control Panel in Firefox (F12), I see that, when the ...
noir04's user avatar
  • 41
3 votes
1 answer
3k views

Getting HTTP/2 Working on Apache

I'm more of an nginx head these days (and I don't have any problems getting HTTP/2 working with that) but I'm completely flummoxed by Apache and cannot seem to get it to serve a site over HTTP/2. The ...
user avatar
3 votes
0 answers
1k views

How does nginx handle HTTP/1 to HTTP/2 conversion?

I just read this question about using nginx as a HTTP/2 server that connects to the web app via HTTP/1 proxy_pass. However, I am interested in the specifics of what actually goes on with the ...
CaptainCodeman's user avatar
3 votes
0 answers
733 views

Microsoft IIS HTTP/2 Vulnerabilities Registry Keys Recommended Values

Microsoft "fixed" the HTTP/2 vulnerabilities recently discovered. The updates add the ability to create the registry keys to stop the vulnerabilities, they don't actually fix the vulnerabilities ...
NinjaBomb's user avatar
  • 159
3 votes
1 answer
1k views

How to get HTTP/2 working with a AWS ALB and Tomcat 9

So I'm having difficultly getting HTTP/2 working with the newer version of the AWS Application Load Balancer, and Tomcat 9. I added the <UpgradeProtocol className="org.apache.coyote.http2....
Zipper's user avatar
  • 413
2 votes
1 answer
2k views

HTTP/2 enable does not work

On Ubuntu 14.04.4 LTS with HHVM(HipHop VM 3.14.1) and Nginx(nginx/1.10.1) I try to enable HTTP/2 like the following in my vhost server { listen 443 ssl http2 default_server; listen [::]:443 ...
Set Kyar Wa Lar's user avatar
2 votes
1 answer
935 views

Does F5 HTTP/2 profile need tuning?

The current default for the F5 HTTP/2 profile has a Concurrent Streams Per Connection default of 10. This seems a bit conservative. IETF recommended that this value being no smaller than 100, so as to ...
flalar's user avatar
  • 200
2 votes
2 answers
6k views

Apache - http/2 enabled but still using http/1.1

Running Apache/2.4.38 (Unix) OpenSSL/1.0.2k-fips on CentOS 7, PHP 7.2.14, I have installed and enabled http/2 following the guide at https://www.tunetheweb.com/performance/http2/. No errors are ...
Pete Coward's user avatar
2 votes
1 answer
2k views

Is it worth it to have gzip_static enabled with HTTP/2?

On a static website I precompress pages to .gz files with maximal compression level and serve them using gzip_static on;. I also have HTTP/2 enabled. My question is whether these things go well ...
Harmen's user avatar
  • 167
2 votes
3 answers
990 views

Nginx with http2 and ios WKWebView

We are running nginx on a debian system as our loadbalancer nginx version: nginx/1.9.10 built with OpenSSL 1.0.2e 3 Dec 2015 (running with OpenSSL 1.0.2g 1 Mar 2016) We had http2 activated in our ...
Janning's user avatar
  • 1,451
2 votes
1 answer
184 views

How can Apache log whether requests are using HTTP2 or not, in a manner that can't be easily spoofed by the client?

According to this, including %H in your LogFormat is supposed to log the HTTP protocol version, however, it appears to be unreliable. As an example, one can telnet to port 80 of the web server and ...
Displayname71's user avatar
2 votes
1 answer
872 views

Apache with HTTP/2 and per-directory upload_max_filesize

I just upgraded my apache2 server on Debian 9.13 Stretch to start using HTTP/2. As far as I'm concerned, that requires switching from mod_php to PHP-FPM. The problem is that PHP-FPM does not obey ...
Carlos Roldán's user avatar
2 votes
0 answers
2k views

Unable to receive gRPC error during a response streaming call using HAProxy in HTTP mode

I'm working on a gRPC application that will be served behind HAProxy using the http mode. If the server application immediately (ie. before sending any responses) aborts the response streaming call ...
Michał Getka's user avatar
2 votes
0 answers
2k views

Enable http2 on Debian 11 Bullseye and Apache 2.4.41

I'm testing Debian 11 Bullseye with Apache 2.4.41 and I'm trying to activate HTTP2 I did some things : sudo a2enmod http2 It returns : Module http2 already enabled Then I put this line on my SSL/...
GrandGTO's user avatar
2 votes
0 answers
3k views

Safari fails to load some resources over http/2 with Apache

I am experiencing an issue in Safari only where sites loaded over http/2 on our Apache 2.4 servers will intermittently (every 3-5 requests) fail to load certain resources. The pages always seem to ...
Josh's user avatar
  • 143
2 votes
0 answers
5k views

How to upgrade apache httpd to latest version (2.4.34) on Centos 7.5.1804?

Is there a "simple" way to upgrade Centos 7.5.1804's version of httpd in order to support http/2? Currently running Apache/2.4.6 and PHP 7.0.30. For this production server, compiling from source is ...
Ryan Griggs's user avatar
  • 1,013
2 votes
0 answers
2k views

Enabling HTTP/2 in Ubuntu 18.04 [duplicate]

I've just upgraded to 18.04 from 16.04 and am having a problem enabling HTTP/2 on my websites. First of all, my websites all use HTTPS. I have done the following: sudo a2enmod http2 added the ...
Cromulent's user avatar
  • 314
2 votes
0 answers
272 views

php.net discourages the use of threaded MPM in production with Apache 2

php.net discourages the use of threaded MPM in production with Apache 2. Use the prefork MPM, which is the default MPM with Apache 2.0 and 2.2. It doesn't mention anything about apache 2.4, I have ...
YesItsMe's user avatar
  • 201
2 votes
0 answers
3k views

nginx+http2: Upstream prematurely closed connection, PROTOCOL_ERROR

On my server I have nginx running using the default docker nginx image (version 1.13.8) as a reverse proxy for Lychee (using wonderfall/lychee), a photo gallery software written in PHP. As far as I ...
cdauth's user avatar
  • 971
2 votes
0 answers
1k views

Nginx proxy_pass loses headers when using http2

I've encoutered a problem with nginx losing headers to backend when using http2 protocol on nginx(regular http to Wildfly 10 backend). The below config works when taking the http2 parameter away and ...
Henri Kotka's user avatar
2 votes
0 answers
2k views

Chrome stalled requests for some HTTP2 resources

Issue Some resources from the CDN take minutes to load because, according to Chrome devtools, are "stalled". This happens only on Chrome and only the first time I open the page in an incognito ...
Alessandro's user avatar
2 votes
2 answers
2k views

HAProxy not working with ALPN

I need to use ALPN in order to configure HAProxy for HTTP/2 support. After configuring HAProxy I tried to restart but it failed. Even upgrading openssl to 1.0.2 did not help. Wikipedia states tat ALPN ...
merlin's user avatar
  • 2,112
2 votes
2 answers
2k views

apache2 http2 keepalives and gracefully finishing

I wonder if anyone out there can explain a few things for me as I am getting stuck. I am looking after a site that has multiple domains talking to the same code serving up different content depending ...
Tom A's user avatar
  • 21
2 votes
1 answer
2k views

Nginx request_time slower with HTTP/2

We are running nginx/1.9.10 as a frontend server with multiple application server as upstream. We are using plain http, mostly https and switched to http/2 in the last weak. We are logging like this:...
Janning's user avatar
  • 1,451
1 vote
4 answers
919 views

Upgrade Nginx behind cloudflare to http2. To do or not?

I am running nginx version: 1.12.1 behind a CloudFlare machine. The CloudFlare front is http2 enabled. I was wondering if it’s a good idea to upgrade to Nginx 1.9.5 that supports http2 ?. The cost ...
Quintin Par's user avatar
  • 4,423