diff --git a/docs/root/faq/sni.rst b/docs/root/faq/sni.rst index 3d45e7474e49..cb36a587857c 100644 --- a/docs/root/faq/sni.rst +++ b/docs/root/faq/sni.rst @@ -22,32 +22,38 @@ The following is a YAML example of the above requirement. config: {} filter_chains: - filter_chain_match: - server_names: "example.com" + server_names: ["example.com", "www.example.com"] tls_context: common_tls_context: tls_certificates: - - certificate_chain: { filename: "example_com_cert.pem" } - private_key: { filename: "example_com_key.pem" } + - certificate_chain: { filename: "example_com_cert.pem" } + private_key: { filename: "example_com_key.pem" } filters: - name: envoy.http_connection_manager config: + stat_prefix: ingress_http route_config: virtual_hosts: - - routes: + - name: default + domains: "*" + routes: - match: { prefix: "/" } route: { cluster: service_foo } - filter_chain_match: - server_names: "www.example.com" + server_names: "api.example.com" tls_context: common_tls_context: tls_certificates: - - certificate_chain: { filename: "www_example_com_cert.pem" } - private_key: { filename: "www_example_com_key.pem" } + - certificate_chain: { filename: "api_example_com_cert.pem" } + private_key: { filename: "api_example_com_key.pem" } filters: - name: envoy.http_connection_manager config: + stat_prefix: ingress_http route_config: virtual_hosts: - - routes: + - name: default + domains: "*" + routes: - match: { prefix: "/" } route: { cluster: service_foo }