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
0 votes
0 answers
19 views

Apache stops responding after a while when activating HTTP/2

I have apache 2.4.41 on Ubuntu 20.04 and run a certain application through PHP-FPM, with the MPM set to 'event'. Recently, in an attempt to speed up the application, I enabled HTTP/2 in the ...
user avatar
0 votes
1 answer
43 views

Is HAProxy in front of Stunnel with SNIs possible?

I have a working SSL Termination with STunnel in front of HAproxy. Recently, the matter of adding support for HTTP/2 was thrown my way. That is easy with HAProxy, but, as a constraint, STunnel must ...
user avatar
  • 3
0 votes
0 answers
15 views

Unwanted IIS http/2 downgrade for laminas-api-tools DELETE request with status code 204 (and only for DELETE)

We are experiencing a http2-to-http1.1 downgrade behaviour of IIS 10 we do not really understand. We have implemented a REST API (frontend: Angular, backend: php (using laminas-api-tools). For our GET,...
user avatar
0 votes
0 answers
49 views

nginx, HTTP/2, zero-length files

After an update of Centos 7.2 to 7.9 an HTTP/2-enabled vhost/site started to behave weirdly: random js/ccs files are downloaded in the browser as zero-length empty ones, but with 200 status. I cannot ...
user avatar
  • 8,004
1 vote
0 answers
145 views

Load Balancing HTTP/2 GRPC persistent connections

Let's take a look at this scenario. In a traditional LB model, we would have the LB (wether a reverse proxy or not) farm out req/rep to application level servers. This model is fine for the generic ...
user avatar
  • 111
0 votes
1 answer
98 views

Avoid duplication in nginx redirects config?

Setting up redirects www → non-www and HTTP → HTTPS at the same time, I ran into duplication issue that I fail to overcome. On my domain—let it be example.com—I have a website with primary name ...
user avatar
  • 1
0 votes
0 answers
165 views

How can I ensure DNS changes take effect within TTL, even when browser reuses HTTP connections?

I am helping implement CloudFront CDN for an NGINX HLS video origin. If you're not familiar, HLS in the browser just uses XHR or fetch to constantly request .m3u8 and .ts files via HTTP and display ...
user avatar
  • 141
0 votes
0 answers
354 views

gRPC via CloudFlare results in HTTP/2 internal error code 2

My setup: .Net gRPC Server <-> Nginx <-> CloudFlare <-> gRPC client (C#/Python) My .Net gRPC Server configured to support insecured http2, listen at port 50052: webBuilder....
user avatar
  • 311
0 votes
1 answer
141 views

(Dis-)Advantages of using HTTP/2 or HTTP/3 for backend connections (reverse proxy -> backend)?

What are the advantages and disadvantages of using HTTP/2 or even HTTP/3 for connections between reverse proxies and backends? I haven't really come across this and only ever see H2 and H2 deployed in ...
user avatar
  • 228
0 votes
1 answer
254 views

Enabled HTTP/2 Support in apache2 v2.4.25 on Debian 9.13 but Tests Show No Support for HTTP/2

I am trying to configure HTTP/2 support but something is going wrong My server is a google compute engine vm running Debian 9.13 (stretch) server version Apache/2.4.25 with SSL certs configured using ...
user avatar
  • 3
0 votes
0 answers
166 views

How to allow Envoy process HTTP/2 over cleartext?

We have a service architecture hidden behind an Envoy proxy, that is in turn hidden behind a Nginx acting as a proxy and a TLS termination handler, therefore all internal communications are passed ...
user avatar
  • 744
0 votes
0 answers
63 views

POST request is returning ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY for coporate users

We have a website and an api services on two different subdomains. Both running on Cloudflare. The website that runs on www.example.com, and when the user logs in, there is an XHR POST call to api....
user avatar
  • 101
0 votes
0 answers
111 views

Issues with site loading over HTTP/2

I have a Windows 2016 server with IIS 10 acting as a reverse proxy to an apache/tomcat running on the same server. When I try to access the application hosted on this server, I get a lot of errors ...
user avatar
  • 741
0 votes
0 answers
37 views

GRPC (HTTP2) with GCP instance

I am testing out both GRPC, which uses HTTP2, and the nanos unikernel. I have written a small test server in Golang that has an internal GRPC server that has requests made by a client connection in ...
user avatar
0 votes
2 answers
196 views

Azure DevOps Server 2020 and http/2

I've set up https on our Azure DevOps Server 2020.0.1 and want IIS to serve the website over http/2. When browsing the website with a Chromium based browser (Chrome, Edge) all content is served over ...
user avatar
  • 101
2 votes
1 answer
311 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 ...
user avatar
0 votes
1 answer
3k views

Windows update causes IIS Express to fail with ERR_HTTP2_PROTOCOL_ERROR

I've been building reactjs apps on a windows machine for the past year, running the Visual Studio IIS test server for debugging / testing. I just installed a windows update pack, rebooted, and my ...
user avatar
-1 votes
2 answers
205 views

Server push : how to make it work

nginx/1.18.0 (Ubuntu) I want to use Server push technology. nginx.conf location = /push/ { http2_push https://slabaya.ru/1/css/style.css; } html <html> <head> <link rel="...
user avatar
2 votes
1 answer
2k 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?
user avatar
0 votes
2 answers
163 views

How to disable Nginx server push refreshing webpage (Disable cached resources pushes)?

I have added Nginx http/2 server push to my WordPress site selected files (fonts, CSS and JS). It is working as expected. Although, there is a problem. If the visitor navigates to another page on my ...
user avatar
  • 87
1 vote
1 answer
2k views

Upload files slow (nginx + http2)

I'm migrating a php webapp from an apache server to an nginx. Everything works as expected except uploading files. A file of 156 MBs takes ~11s to be uploaded on current server with apache, while the ...
user avatar
0 votes
1 answer
240 views

http/1 and http/2 parallel delivery using nginx

Is it possible to have both http/1 and http/2 enabled for a vhost in nginx? The idea is to broaden the supported browsers by serving http/2 if supported, and, if not, fall back to http/1.
user avatar
  • 103
1 vote
0 answers
897 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 ...
user avatar
3 votes
1 answer
252 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 ...
user avatar
2 votes
0 answers
311 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 ...
user avatar
0 votes
1 answer
294 views

How does a webserver know which files to send in an HTTP/2 request?

As I understand HTTP/2 can send the website assets (images, scripts, css files, etc) over a single connection, as well as push them. I am interested in how this actually happens in practice. How does ...
user avatar
0 votes
1 answer
628 views

HTTP/2 not being enabled in Apache

I am trying to enable HTTP/2 in Apache 2.4.38, but I am failing to do so. All requests are still being served using HTTP/1.1 according to the Lighthouse tests in the browser. I am using the official ...
user avatar
0 votes
0 answers
156 views

How to configure Apache to serve HTTP version 2?

The configuration file of Apache already has the following: LoadModule http2_module modules/mod_http2.so and... <IfModule mod_http2.c> Protocols h2 h2c http/1.1 </IfModule> HTTPS is ...
user avatar
0 votes
0 answers
495 views

Chrome request pending forever when http2 module is enabled

I have a centos 7 with a customized fresh httpd(2.4.46). When the http/2 protocol's module is loaded, then in chrome browser - and only in chrome browser - in the case if I smash the refresh button on ...
user avatar
0 votes
1 answer
1k views

proxy pass http 2 with nginx

I tried to proxy pass all inbound traffic with nginx. I use this repo with thisnginx.conf and works properly. http{ server { listen 80 default_server; server_name _; ...
user avatar
0 votes
0 answers
243 views

502 Error from nginx server after setting up http2 and ssl

I am getting a 502 error from my nginx server. I used certbot to configure the ssl and am trying to get http2 enabled and somehow i broke the server. when I run sudo nginx -t it reads: nginx: [warn] ...
user avatar
  • 1
2 votes
0 answers
592 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/...
user avatar
0 votes
2 answers
186 views

unable to use http2 h2c on apache2

Im trying to enable http2 h2c in my website under ubuntu 18.04 and apache2, but it isnt working. heres what i have done use MPM-event instead of prefork Add protocols to 000-default.conf <...
user avatar
1 vote
0 answers
66 views

HTTP/2 Server Push Crossorigin not Working for Fonts in .htaccess

Further to my original question, preloading fonts using link headers in .htaccess, I've since been experimenting with HTTP/2 Server Push for more efficient caching. Server push works as expected for ...
user avatar
0 votes
1 answer
3k views

How to resolve ERR_HTTP2_PROTOCOL_ERROR for static files on a first page load (SSL + Pagespeed)?

I have a nginx HTTP2 + ngx_pagespeed + brotli + Wordpress W3 Total Cache setup. On a first page load some static files that were modified by the Pagespeed fail to load, giving a ...
user avatar
0 votes
1 answer
598 views

h2c on apache not workikng

I would like to enable h2c mode on apache, so I can use HTTP2.0 protocol. In my virtual host configuration I have included the line: Protocols h2c http/1.1 I have also followed the advise to disable ...
user avatar
  • 113
1 vote
1 answer
181 views

nginx http_push_preload and forwarding headers/cookies

I'm experimenting with pushing redirects using nginxs http2_push_preload on; directive. In my application I detect redirects and add a Link: <location>; as=document; rel=preload header that ...
user avatar
  • 121
0 votes
1 answer
602 views

apache reverse proxy http2 to https

EDIT: I figured out the issue I didn't have the http2 module turned on, so enabling http2 on the edge wasn't working. I don't need http2 communication between apache and my node servers, as there is ...
user avatar
0 votes
1 answer
697 views

Long TTFB / SSL negotiation in setup of HTTP/2, apache and Nginx as reverse proxy

As in title, i realize partly very long TTFB caused by SSL negotiation longer then one second in setup of HTTP/2, Apache and Nginx as reverse proxy. What could be the setting screws and mostly ...
user avatar
  • 255
0 votes
0 answers
153 views

Why do I get mixed http/1.1 and h2 requests to the same server?

I have set up my apache2 to support http2 roughly following https://http2.pro/doc/Apache. Everything runs smoothly, but when I check connections to my Nextcloud and Roundcube instances in Chromiums ...
user avatar
  • 285
2 votes
1 answer
522 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 ...
user avatar
  • 200
2 votes
2 answers
3k 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: ...
user avatar
0 votes
1 answer
949 views

Nginx redirect HTTPS, www, IPv6, HTTP2

I'm trying to avoid redirect chains in Nginx, which I am using as a reverse proxy to Apache. I've been able to find plenty of documentation about redirecting HTTP to HTTPS. I've also found plenty of ...
user avatar
  • 191
0 votes
1 answer
300 views

Apache HALF_CLOSED_REMOTE errors causing timeouts

This is a busy web server running Apache 2.4. Recently we have noticed several brief outages, where the server is timing out on incoming requests for a short period of time (less than a minute). ...
user avatar
0 votes
1 answer
1k views

centos 8 Dockerfile apache http2

I'm trying to dockerise our system and I'm doing it step by step with 2 servers. In one I have docker (running on a centos7 server) and in the internal dev VM (running Centos8) I'm installing the ...
user avatar
0 votes
1 answer
2k views

HTTP/1 to HTTP/2 translation via proxy

I have a legacy client application that supports HTTP/1 protocol only. Some of the servers accessed by this application no longer support the HTTP/1 protocol because they migrated to the HTTP/2 ...
user avatar
  • 101
0 votes
2 answers
585 views

How to get Apache2 Version 2.4.17 or higher on Debain 8 (Jessie)?

I work with a virtual server, running Debian Jessie (8) and Apache2 in version 2.4.10. Unfortunately it seems that this version of Apache2 is the latest version that is served by the official ...
user avatar
0 votes
1 answer
240 views

Unexpected mixture of http2 and 1.1 responses

I am configuring nginx as a reverse proxy (in front of some http/1.1 servers). I initially set up an origin server on the nginx instance. As expected it returned content exclusively over HTTP/2. ...
user avatar
  • 19.9k
1 vote
0 answers
182 views

Client connects to Cloudfront via HTTP2, then connects to an Apache Server via HTTP1, can HTTP2 vulnerabilities be exploited in the HTTP1 connection?

We have an environment where customers connect to a Cloudfront distribution via HTTP2 and then from the Cloudfront distribution to an Apache web server via a HTTP1 connection. [ client ] ---(https, ...
user avatar
3 votes
1 answer
1k 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 ...
user avatar
  • 131