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:14 UTC

[trafficserver] branch master updated (bb4d873 -> a918487)

This is an automated email from the ASF dual-hosted git repository.

mlibbey pushed a change to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git.

      from  bb4d873   [TS-4529] Adjust thread with the right continuation. This closes #703.
       new  6c49268   Add timeout example and clarify PATH component
       new  a918487   Clarify settion when used with API

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 doc/admin-guide/files/records.config.en.rst   | 16 +++++++++++-----
 doc/admin-guide/plugins/header_rewrite.en.rst | 13 ++++++++++++-
 2 files changed, 23 insertions(+), 6 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].

[trafficserver] 01/02: Add timeout example and clarify PATH component

Posted by ml...@apache.org.
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>.

[trafficserver] 02/02: Clarify settion when used with API

Posted by ml...@apache.org.
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 a918487fea6e024ccc73979bd5856b00cc670c40
Author: Miles Libbey <ml...@apache.org>
AuthorDate: Wed Jun 15 13:15:37 2016 -0700

    Clarify settion when used with API
    
    When using an API (or plugin like header_rewrite or conf_remap),
    proxy.config.http.server_session_sharing.match needs to be set to
    an INT.
---
 doc/admin-guide/files/records.config.en.rst | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/doc/admin-guide/files/records.config.en.rst b/doc/admin-guide/files/records.config.en.rst
index c805df1..2ddce00 100644
--- a/doc/admin-guide/files/records.config.en.rst
+++ b/doc/admin-guide/files/records.config.en.rst
@@ -874,13 +874,19 @@ Value Effect
    ======== ===================================================================
    Value    Description
    ======== ===================================================================
-   ``none`` Do not match and do not re-use server sessions.
+   ``none`` Do not match and do not re-use server sessions. If using this in
+            :ref:`ts-overridable-config` (like the :ref:`admin-plugins-conf-remap`),
+            use the integer ``0`` instead.
+   ``both`` Re-use server sessions, if *both* the IP address and fully qualified
+            domain name match. If using this in :ref:`ts-overridable-config` (like
+            the :ref:`admin-plugins-conf-remap`), use the integer ``1`` instead.
    ``ip``   Re-use server sessions, checking only that the IP address and port
-            of the origin server matches.
+            of the origin server matches. If using this in
+            :ref:`ts-overridable-config` (like the :ref:`admin-plugins-conf-remap`),
+            use the integer ``2`` instead.
    ``host`` Re-use server sessions, checking only that the fully qualified
-            domain name matches.
-   ``both`` Re-use server sessions, if *both* the IP address and fully qualified
-            domain name match.
+            domain name matches. If using this in :ref:`ts-overridable-config`
+            (like the :ref:`admin-plugins-conf-remap`), use the integer ``3`` instead.
    ======== ===================================================================
 
    It is strongly recommended to use either ``none`` or ``both`` for this value

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.