This is an automated email from the ASF dual-hosted git repository. zwoop pushed a commit to branch 7.1.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/7.1.x by this push: new ee9bf75 More header_rewrite examples ee9bf75 is described below commit ee9bf75b5da85c1f4b86b715fdf909005d1ac320 Author: Miles Libbey <mlib...@apache.org> AuthorDate: Sun Oct 29 12:12:00 2017 -0700 More header_rewrite examples Backports https://github.com/apache/trafficserver/commit/54df615f35731bbca77165fbc0f5db94cc0abd08 to 7.1x --- doc/admin-guide/plugins/header_rewrite.en.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/admin-guide/plugins/header_rewrite.en.rst b/doc/admin-guide/plugins/header_rewrite.en.rst index c4b3eb3..4954dba 100644 --- a/doc/admin-guide/plugins/header_rewrite.en.rst +++ b/doc/admin-guide/plugins/header_rewrite.en.rst @@ -740,7 +740,7 @@ The URL part names which may be used for these conditions and actions are: Part Description ======== ====================================================================== HOST Full hostname. -PATH URL substring beginning with the first ``/`` after the hostname up to, +PATH URL substring beginning with (but not including) the first ``/`` after the hostname up to, but not including, the query string. PORT Port number. QUERY URL substring from the ``?``, signifying the beginning of the query @@ -1022,10 +1022,10 @@ path. One provides a max age and the other provides a “no-cache” statement two different file paths.:: cond %{SEND_RESPONSE_HDR_HOOK} - cond %{PATH} /examplepath1/ + cond %{CLIENT-URL:PATH} /examplepath1/ add-header Cache-Control "max-age=3600" [L] cond %{SEND_RESPONSE_HDR_HOOK} - cond %{PATH} /examplepath2/examplepath3/.*/ + cond %{CLIENT-URL:PATH} /examplepath2\/examplepath3\/.*/ add-header Cache-Control "no-cache" [L] Redirect when the Origin Server Times Out @@ -1037,7 +1037,7 @@ 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] + set-redirect 302 http://different_origin.example.com/%{CLIENT-URL:PATH} [QSA] Check for existence of a header ------------------------------- -- To stop receiving notification emails like this one, please contact ['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].