Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions doc/admin-guide/plugins/header_rewrite.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ be specified multiple times, such as ``Set-Cookie``, but for headers which may
only be specified once you may prefer to use `set-header`_ instead.

The header's ``<value>`` may be specified as a literal string, or it may take
advantage of :ref:`header-rewrite-concatenations` to calculate a dynamic value
advantage of `String concatenations`_ to calculate a dynamic value
for the header.

counter
Expand Down Expand Up @@ -675,9 +675,8 @@ set-header
Replaces the value of header ``<name>`` with ``<value>``, creating the header
if necessary.

The header's ``<value>`` may be specified according to `Header Values`_ or take
advantage of :ref:`header-rewrite-concatenations` to calculate a dynamic value
for the header.
The header's ``<value>`` may be a literal string, or take advantage of
`String concatenations`_ to calculate a dynamic value for the header.

set-redirect
~~~~~~~~~~~~
Expand All @@ -689,7 +688,7 @@ When invoked, sends a redirect response to the client, with HTTP status
``<code>``, and a new location of ``<destination>``. If the ``QSA`` flag is
enabled, the original query string will be preserved and added to the new
location automatically. This operator supports
:ref:`header-rewrite-concatenations` for ``<destination>``.
`String concatenations`_ for ``<destination>``.

set-status
~~~~~~~~~~
Expand Down Expand Up @@ -760,16 +759,15 @@ L Last rule, do not continue.
QSA Append the results of the rule to the query string.
====== ========================================================================

.. _header-rewrite-concatenations:

String concatenations
---------------------

You can concatenate values using strings, condition values and variable expansions on the same line.

add-header CustomHeader "Hello from %{IP:SERVER}:%{INBOUND:LOCAL-PORT}"

String concatenation is not yet supported in condition testing.
This is the new, generic form of setting header values. Unfortunately, string
concatenation is not yet supported in conditionals.

Note: In versions prior to ATS v9.0.0, an alternative string expansion was available. those
expansions are no longer available, but the following table can help migrations:
Expand Down
1 change: 1 addition & 0 deletions doc/appendices/command-line/traffic_server.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ actions or queries against |TS|. Note that some commands (such as ``help`` and
argument, surround the ``CMD`` and its argument in quotes. For instance, to
request help for the ``verify_global_plugin`` command, format your command like
so::

traffic_server -C "help verify_global_plugin"

The following commands are supported:
Expand Down