From bb100d6c1d6a79b8f8602937946bb5be2513e724 Mon Sep 17 00:00:00 2001 From: He Jie Xu Date: Mon, 17 Oct 2022 02:42:36 +0000 Subject: [PATCH 1/2] doc: fix FAQ doc for strip_matching_host_port Signed-off-by: He Jie Xu --- docs/root/faq/debugging/why_is_my_route_not_found.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/root/faq/debugging/why_is_my_route_not_found.rst b/docs/root/faq/debugging/why_is_my_route_not_found.rst index 17b6447c2f7eb..f10cc6758b32e 100644 --- a/docs/root/faq/debugging/why_is_my_route_not_found.rst +++ b/docs/root/faq/debugging/why_is_my_route_not_found.rst @@ -27,7 +27,7 @@ to - "www.host.com:80" - "www.host.com:443" -The other is to strip ports entirely using :ref:`stripping port from host header `. Not that this will only stip port 80 from insecure requests and 443 from secure request. It does -not just stop ports when routes are matched, but changes -the host sent downstream to also not include the port. +The other is to strip ports entirely using :ref:`strip_any_host_port ` or +:ref:`strip_matching_host_port `. The diffent is :ref:`strip_matching_host_port ` +only strip port if it is equal to the listener's local port. From df95d6a4517d5d5d89a2c93b207a47d57f99be2a Mon Sep 17 00:00:00 2001 From: He Jie Xu Date: Mon, 17 Oct 2022 02:57:48 +0000 Subject: [PATCH 2/2] fix link Signed-off-by: He Jie Xu --- docs/root/faq/debugging/why_is_my_route_not_found.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/root/faq/debugging/why_is_my_route_not_found.rst b/docs/root/faq/debugging/why_is_my_route_not_found.rst index f10cc6758b32e..2c70d7da625c5 100644 --- a/docs/root/faq/debugging/why_is_my_route_not_found.rst +++ b/docs/root/faq/debugging/why_is_my_route_not_found.rst @@ -28,6 +28,6 @@ to - "www.host.com:443" The other is to strip ports entirely using :ref:`strip_any_host_port ` or -:ref:`strip_matching_host_port `. The diffent is :ref:`strip_matching_host_port ` +:ref:`strip_matching_host_port `. The diffent is :ref:`strip_matching_host_port ` only strip port if it is equal to the listener's local port.