#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
msgid ""
msgstr ""
"Project-Id-Version: Apache Traffic Server 4.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-11-08 17:57+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: ../../reference/plugins/header_filter.en.rst:4
msgid "Header Filter Plugin"
msgstr ""

#: ../../reference/plugins/header_filter.en.rst:34
msgid ""
"Or, alternatively, in a ```per-remap`` <../../configuration-files/remap."
"config>`_ rule configuration ::"
msgstr ""

#: ../../reference/plugins/header_filter.en.rst:40
msgid ""
"Even if you don't have a global configuration, if your remap rules "
"schedules actions in hooks other than during remap, you must also add the "
"``header_filter.so`` to the ```plugin.config`` <../../configuration-files/"
"remap.config>`_ (see above), but without args::"
msgstr ""

#: ../../reference/plugins/header_filter.en.rst:48
msgid "The configuration files looks like ::"
msgstr ""

#: ../../reference/plugins/header_filter.en.rst:65
msgid ""
"Comments are prefixed with ``#``, and in most cases, the regular expression "
"matching is the best choice (very little overhead). The pattern matches can "
"also take an option '``!``\\ ' to reverse the test. The default action is "
"to delete all headers that do (not) match the pattern. E.g.::"
msgstr ""

#: ../../reference/plugins/header_filter.en.rst:75
msgid ""
"The final \"``i``\\ \" qualifier (works on all pattern matches) forces the "
"match or comparison to be made case insensitive (just like in Perl)."
msgstr ""

#: ../../reference/plugins/header_filter.en.rst:78
msgid ""
"It's also possible to replace or add headers, using the = and + operators. "
"For example ::"
msgstr ""

#: ../../reference/plugins/header_filter.en.rst:85
msgid ""
"This will force the Host: header to have exactly one value, ``www.example."
"com``, while ``X-Foo`` will have at least one header with the value ATS, "
"but there could be more instances of the header from the existing header in "
"the request."
msgstr ""

#: ../../reference/plugins/header_filter.en.rst:90
msgid "Possible hooks are ::"
msgstr ""

#: ../../reference/plugins/header_filter.en.rst:97
msgid ""
"If not specified, the default hook to add the rules (headers to filter) is "
"``READ_REQUEST_HDR``. It's completely acceptable (and useful) to configure "
"a remap rule to delete headers in a later hook (e.g. when reading a "
"response from the server). This is what actually makes the plugin even "
"remotely useful."
msgstr ""

#: ../../reference/plugins/header_filter.en.rst:105
msgid "Examples"
msgstr ""

#: ../../reference/plugins/header_filter.en.rst:108
msgid "Set X-Forwarded-Proto https on SSL connections"
msgstr ""

#: ../../reference/plugins/header_filter.en.rst:110
msgid ""
"Often times a backend wants to know whether it's running under HTTP or "
"HTTPS. While not regulated standard, we can use the ``X-Forwarded-Proto`` "
"header for this purpose."
msgstr ""

#: ../../reference/plugins/header_filter.en.rst:114
msgid ""
"In ```plugin.config`` <../../configuration-files/plugin.config>`_ we need "
"to add::"
msgstr ""

#: ../../reference/plugins/header_filter.en.rst:119
msgid ""
"Then, in ```remap.config`` <../../configuration-files/remap.config>`_ we "
"can configure ``header_filter`` on a case by case basis::"
msgstr ""

#: ../../reference/plugins/header_filter.en.rst:125
msgid ""
"The configuration that ties everything together is then ``/etc/"
"trafficserver/x_fwd_proto.config``, to which we add::"
msgstr ""

#: ../../reference/plugins/header_filter.en.rst:131
msgid ""
"To activate this configuration, we need to restart Traffic Server with :"
"option:`traffic_line -L`."
msgstr ""

#: ../../reference/plugins/header_filter.en.rst:134
msgid ""
"In the backend servers we can now pick this up and do appropriately set "
"server variables that will be picked up by CGI programs for instance. In "
"the case of Apache httpd backend, this can be acomplished with "
"```mod_setenvif`` <http://httpd.apache.org/docs/current/mod/mod_setenvif."
"html#setenvif>`_::"
msgstr ""

#: ../../reference/plugins/header_filter.en.rst:28
msgid ""
"The ``header_filter`` is a simple plugin for filtering out headers from "
"requests (or responses). Typical configuration is done either with a global "
"configuration, in :file:`plugin.config`::"
msgstr ""

#: ../../reference/plugins/header_filter.en.rst:24
msgid ""
"Use :ref:`header-rewrite-plugin` instead, it provides the same, and more, "
"functionality."
msgstr ""
