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 <[email protected]>
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
"[email protected]" <[email protected]>.

Reply via email to