trafficserver icon indicating copy to clipboard operation
trafficserver copied to clipboard

How to set HTTP2 optionally per domain?

Open amoghyermalkar123 opened this issue 2 years ago • 2 comments

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?

amoghyermalkar123 avatar Jul 18 '22 12:07 amoghyermalkar123

What version of ATS?

randall avatar Jul 19 '22 17:07 randall

8.1.1

amoghyermalkar123 avatar Jul 25 '22 03:07 amoghyermalkar123

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.

github-actions[bot] avatar Jul 26 '23 01:07 github-actions[bot]