trafficserver
trafficserver copied to clipboard
How to set HTTP2 optionally per domain?
I have a setup where I would like to enable http2 selectively on specific domains from remap.config. The rest of the domains where http2 is not enabled should be rejected to use http2 even if the client speaks http2 and should default to http1. I tried setting up ssl_server_name.yml as such -
- fqdn: somedomain.com
disable_h2: true
and configuring records.config like -
CONFIG proxy.config.http.server_ports STRING 80 443:proto=http2;http:ssl 443:ipv6
...
but this combination has not worked for me since If i request somedomain.com with an http2 client, ATS uses http2, expectation here is to either reject the request or to use http1.1
My http client request looks like this -
curl -s --http2 -o /dev/null -v --resolve somedomain.com443:SOME_IP -H "Host: somedomain.com" "https://somedomain.com/content"
How can I achieve this?
What version of ATS?
8.1.1
This issue has been automatically marked as stale because it has not had recent activity. Marking it stale to flag it for further consideration by the community.