Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

-1
votes
0answers
11 views

Nginx server listen configuration

I currently have the following nginx configuration: server { server_name example.com; listen 443 ssl http2; listen [::]:443 ssl http2; ... } After looking at the nginx documentation ...
0
votes
0answers
44 views

ZIP files on Apache 2.4 with HTTP/2 fail to download after around 6 MBs

I am attempting to configure an Apache 2.4.25 (Debian 9.7) server to serve files via HTTP/2. All HTML, CSS, JS and image files are being correctly served. However, I am facing difficulties with ...
0
votes
2answers
47 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 ...
1
vote
1answer
65 views

HTTP/2: speed vs. security

As a measure for speeding up of webpage loading times i recommended to switch over from HTTP1.1 to HTTP/2 protocol. And just today, firtsly in my experience since HTTP/2 rising, i've heard as the ...
0
votes
0answers
20 views

HTTP/2 Not working for my resources

I am using Google Cloud Compute Engine running Apache 2. I enabled HTTP2 sudo a2enmod http2 I added this to the top of my default-ssl.conf and made it global. Protocols h2 h2c http/1.1 The ...
0
votes
1answer
34 views

Use Different HTTP Protocols per Browser in Apache

I am trying to use http/2 for everything except Safari because of some strange behavior we are seeing when using http/2 with any version of Safari we have handy. I cannot figure out how to set up ...
1
vote
0answers
158 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 ...
0
votes
0answers
29 views

Apache2 with HTTP/2 serves some content with h2, some with http/1.1

I have setup HTTP/2 with Apache 2.4.29. HTTP/2 is working as checked here https://tools.keycdn.com/http2-test. When I connect to my site via Chrome or Firefox only some content is using h2. ...
0
votes
1answer
34 views

HTTP2 on multiple proxies

I read in Cloudflares support pages they convert the traffic from HTTP2 to HTTP/1.x when sending the requests forward to our internal proxies. We have a Cloudflare WAF service, which send the traffic ...
1
vote
0answers
1k 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 ...
2
votes
0answers
1k 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 ...
0
votes
0answers
64 views

Nginx HTTP/2 - Pingdom Test Not Working With SSL Enabled

So I have a site setup in Nginx that was done using the Forge Laravel service. Without SSL enabled, the site loads fine for myself and also loads fine using the Pingdom Site Test. If however I enable ...
1
vote
0answers
109 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 ...
2
votes
1answer
617 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 ...
1
vote
1answer
359 views

Apache HTTP/2 connections are not persistent

So I decided to implement HTTP/2 through Apache mod_http2. It was working fine, however every request, except for those with under 1 sec between them, is non-persistent. I am sure of this because as ...
1
vote
2answers
271 views

Apache and Golang (or nodejs or springboot etc.) with SSLPROXYpass and HTTP2

my question is about "security" I suppose that this question is also for nodejs or springboot or whatever running on another port with apache as primary server Im trying some stuff with golang app ...
2
votes
0answers
1k 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 ...
0
votes
0answers
715 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 ...
3
votes
1answer
1k 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 <...
0
votes
1answer
1k views

HTTP/2 between Nginx reverse proxy and Express

I have an Express web server behind Nginx reverse proxy. The Nginx is configured for HTTP/2. Is it better to leave the default http1 connection between Nginx and Express, or is there worth in ...
0
votes
1answer
633 views

Speeding up nginx requests on https with http2

I'm moving my site fully over to SSL, and so far I've moved the mobile version over. The problem I'm having, is that its quite a bit slower on the request: Before: After: The initial HTML page for ...
1
vote
0answers
476 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 ...
7
votes
2answers
2k 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; ...
5
votes
1answer
5k 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:...
0
votes
1answer
940 views

can''t enable http2 apache on debian jessie

I have updated Apache2 on Debian Jesie using testing repository https://www.shivering-isles.com/http-2-getting-ready-on-debian-with-apache2/ now i have: Server version: Apache/2.4.27 (Debian) ...
1
vote
1answer
2k views

How to get Apache, Ubuntu, and PHP7 to work with HTTP/2?

I have followed the steps mentioned at https://http2.pro/doc/Apache but my website still only serves files as HTTP/1.1. I can see that the mod_http2 is in the config with no errors on restarting ...
0
votes
2answers
80 views

HTTP2 protocol used, but requests still sequential, unlike expected

I'm trying to optimize a news portal website and a huge number of about 800-1000 requests per page for our CMS by moving from HTTP11 to HTTP2. I expected that HTTP2 will make my requests parallel (...
2
votes
1answer
592 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 ...
1
vote
4answers
361 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 ...
1
vote
1answer
1k 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/...
0
votes
1answer
80 views

HTTP/2 Server Push when client denies it or doesn't supporting it

So I'm wondering whether to enable Server Push or not. I know that HTTP/2 upgrades from HTTP/1 which means that any client that doesn't support HTTP/2 will fall back to HTTP/1 and carry on as normal....
4
votes
1answer
6k 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.
1
vote
2answers
283 views

Why is nginx serving http2, or is it?

Been trying to get http2 going on my nginx server, and I'm confused about some things. I've looked around here and around the web, but I did not find exactly what I'm looking for, or it's answered ...
1
vote
1answer
1k 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 ...
-1
votes
1answer
223 views

Cannot get HTTP2 enabled on nginx 1.13 running with openSSL 1.0.2

Im having a clue, Im trying to enable http2 on my website. I added it on my nginx.conf, I updated nginx from debian repository and added openSSL from another repo. nginx -v : nginx version: nginx/1....
1
vote
1answer
358 views

HTTP2 enabled but not supported

I have an AWS Ubuntu 16 Apache Server that is set up to use HTTP2. I have followed every tutorial out there and they all say the same thing: sudo apt-get install software-properties-common sudo add-...
0
votes
2answers
848 views

phpMyAdmin and Apache - Query string - 404 Error

When phpMyAdmin tries to access URL as https://example.com/phpmyadmin/server_variables.php&filter=long_query_time, Apache throws a 404 Error. What might be the problem? The requested URL /...
0
votes
1answer
453 views

Chrome HTTP2 requests do not finish for large gzipped files (Apache)

I recently upgraded Aapche to 2.4.26 (ondrej ppa) on Ubuntu 16.04. By default, modules deflate and http2 are enabled. On Chrome, when serving large JS files, the request simply does not finish and ...
1
vote
1answer
566 views

Issues with file uploads with apache 2.4 + http2 + proxy_http

I am currently trying to enable http2 for a project. The system is running on Ubuntu 16.04 on AWS behind an ELB with proxy_protocol enabled. The site is running SSL only with Apache 2.4 from ppa:...
1
vote
0answers
134 views

Ubuntu 17.04 netty-tcnative ALPN not available for JDK SSL/TLS engine

I have a Java application (runnung under Oracle Java, but the same issue happens with OpenJDK) that uses netty-tcnative. It runs without issue on macOS, but when I try running it on Ubuntu 17.04 I get ...
0
votes
1answer
1k views

nginx ALPN with debian 9 (stretch)

I just upgraded to Debian 9 (stretch) but system seems to not support ALPN negociation (after running a HTTP2 test). All guides over the internet still refers to Jessie (Debian 8) but none talks about ...
1
vote
0answers
517 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 ...
0
votes
1answer
829 views

HAProxy maintenance with mode tcp and http2

I have a problem configuring HAProxy in TCP mode with http2. My main goal is to serve static maintenance page over HTTPS. Here's my HAProxy config: global log /dev/log local0 log /dev/log ...
0
votes
1answer
112 views

How does a HTTP/2 server deal with a client not needing a resource?

I have been reading about HTTP/2 and the idea of server pushing resources to the client preemptively seems nice. But what if the client does not need it because the client has already cached it from ...
6
votes
1answer
2k 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, ...
0
votes
1answer
716 views

Install nginx with http_v2_module flag enabled, via ap-get?

I'm really struggling to get a new Debian 8 server, with nginx and HTTP/2 configured I installed nginx with apt-get: apt-get install nginx That all runs fine, and I get this with nginx -V; ...
1
vote
0answers
124 views

Strange behaviour with HTTP/2.0 (Apache-2.4.25)

I recently implemented HTTP/2.0 (yesterday), and while developing my website I have noticed that some requests are being delivered as HTTP/1.1. At first I thought that the fact they are taking 0ms ...
7
votes
2answers
8k 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 ...
1
vote
2answers
2k views

Nginx with SSL connection error

I'm trying to migrate a site from HTTP to HTTPS, however, my nginx (version: 1.10.3) config seems not to be working. The following behavior is desired: http://www.example.com/path/to/content should ...
9
votes
3answers
11k 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/...