You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ml...@apache.org on 2016/06/15 20:18:15 UTC
[trafficserver] 01/02: Add timeout example and clarify PATH
component
This is an automated email from the ASF dual-hosted git repository.
mlibbey pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git
commit 6c4926851523a2adc24764a5bfadf3bd18a3810e
Author: Miles Libbey <ml...@apache.org>
AuthorDate: Wed Jun 15 13:13:33 2016 -0700
Add timeout example and clarify PATH component
---
doc/admin-guide/plugins/header_rewrite.en.rst | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/doc/admin-guide/plugins/header_rewrite.en.rst b/doc/admin-guide/plugins/header_rewrite.en.rst
index 213ec74..ada3a8d 100644
--- a/doc/admin-guide/plugins/header_rewrite.en.rst
+++ b/doc/admin-guide/plugins/header_rewrite.en.rst
@@ -316,7 +316,7 @@ PATH
cond %{PATH} <operand>
-The path component of the transaction. This includes the leading ``/`` that
+The path component of the transaction. This does NOT include the leading ``/`` that
immediately follows the hostname and terminates prior to the ``?`` signifying
the beginning of query parameters (or the end of the URL, whichever occurs
first).
@@ -980,3 +980,14 @@ two different file paths.::
cond %{SEND_RESPONSE_HDR_HOOK}
cond %{PATH} /examplepath2/examplepath3/.*/
add-header Cache-Control "no-cache" [L]
+
+Redirect when the Origin Server Times Out
+-----------------------------------------
+
+This rule sends a 302 redirect to the client with the requested URI's Path and
+Query string when the Origin server times out or the connection is refused::
+
+ cond %{SEND_RESPONSE_HDR_HOOK}
+ cond %{STATUS} =502 [OR]
+ cond %{STATUS} =504
+ set-redirect 302 http://different_origin.example.com/%{PATH} [QSA]
--
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.