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.
145
questions
0
votes
1
answer
26
views
Slowdown in Apache with HTTP/2 when Requesting Small Thumbnails (60KB) via Reverse Proxy to HTTP/1.1 Backend
I am currently running an Apache server with HTTP/2 enabled as a reverse proxy for my web application. I have noticed a significant slowdown when requesting a large number of small thumbnails (each ...
0
votes
0
answers
45
views
HAproxy, nginx and HTTP/2
I have few servers and for all of them:
HAproxy sometimes is giving SSL certs for connection
Sometimes nginx is giving SSL certs
I need to set up HTTP/2 connections, where currently all are HTTP/1.1....
0
votes
0
answers
58
views
Http outperformed Http2 ,why, please help me to figure out?
I'm currently conducting performance testing on my NGINX web server container and I'm encountering some unexpected results. My tests show that HTTP performance is outperforming HTTP/2, despite SSL and ...
0
votes
1
answer
272
views
Redirect nginx port 80 to http2 443 fails [duplicate]
Searched tons of links on the web, I don't get why this conf doesn't redirect properly from http://example.com to https://example.com
My nginx conf:
# HTTPS
server {
listen 443 ssl http2;
...
0
votes
0
answers
324
views
Apache - http/2 enabled but still feeding http/1.1 on requests
Apache/2.4.34 (Red Hat) OpenSSL/1.0.2k-fips on CentOS 7, PHP 7.4.33, I have installed and enabled http/2 following the guide at How to enable http/2 from a Centos Package/yum?. No errors are reported ...
0
votes
1
answer
272
views
GRPC streaming not working when forwarded via Apache reverse proxy
I have a gRPC service and I want to deploy it behind an Apache reverse proxy.
The apache configuration is similar to the following:
LoadModule http2_module modules/mod_http2.so
LoadModule ...
1
vote
0
answers
614
views
NGINX + HTTP2 + ALPN (ALPN, server did not agree to a protocol and No ALPN negotiated)
the protocol http2 is not working and I cannot see exactly where the error is.
server {
listen 80 ;
listen [::]:443 ssl http2;
listen 443 ssl http2;
...
}
curl:
* ALPN, offering h2
* ALPN, offering ...
0
votes
1
answer
796
views
Nginx reverse proxy http2 push preload
I configured nginx 1.18 to push an image with the preload.
This i the nginx configuration
location / {
proxy_pass http://miosito;
proxy_http_version 1.1;
...
2
votes
1
answer
132
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 ...
0
votes
0
answers
35
views
Apache HTTP/2 Issues on Virtual Hosts
I have third-party domains pointed to my IP address using A records, and these are configured on the server using a Virtual Host configuration. Here's an example:
Protocols h2 h2c http/1.1
<...
0
votes
1
answer
38
views
How To Force User Agents To Use Later Available Version of HTTP?
A OpenLiteSpeed Web Server is running on AlmaLinux 8.
HTTP/1.1, HTTP/2 and HTTP/3 QUIC are enabled.
80/tcp, 443/tcp and 443/udp ports are open publicly and permanently.
The server is sending the below ...
0
votes
0
answers
122
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 ...
0
votes
1
answer
273
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 ...
1
vote
0
answers
327
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 ...
1
vote
0
answers
413
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 ...
0
votes
1
answer
550
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 ...
0
votes
0
answers
462
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 ...
1
vote
1
answer
1k
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 ...
0
votes
1
answer
1k
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 ...
0
votes
0
answers
95
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....
0
votes
2
answers
402
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 ...
2
votes
1
answer
788
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 ...
1
vote
1
answer
6k
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 ...
-1
votes
2
answers
791
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="...
5
votes
1
answer
8k
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?
1
vote
2
answers
474
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 ...
1
vote
1
answer
4k
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 ...
0
votes
1
answer
1k
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.
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 ...
3
votes
1
answer
364
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 ...
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 ...
0
votes
1
answer
515
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 ...
0
votes
1
answer
1k
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 ...
1
vote
0
answers
513
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 ...
0
votes
0
answers
796
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 ...
0
votes
2
answers
3k
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 _;
...
0
votes
0
answers
786
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] ...
2
votes
0
answers
1k
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/...
0
votes
2
answers
436
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
<...
1
vote
0
answers
121
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 ...
1
vote
1
answer
7k
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 ...
0
votes
1
answer
914
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 ...
1
vote
1
answer
252
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 ...
0
votes
1
answer
925
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 ...
0
votes
1
answer
1k
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 ...
0
votes
0
answers
312
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 ...
2
votes
1
answer
846
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 ...
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:
...
0
votes
1
answer
2k
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 ...
0
votes
1
answer
377
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). ...