[
https://issues.apache.org/jira/browse/TS-3831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14681991#comment-14681991
]
ASF subversion and git services commented on TS-3831:
-----------------------------------------------------
Commit f65b867bd0741ec1d370e429ac774e5930a56dfa in trafficserver's branch
refs/heads/master from [~amc]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=f65b867 ]
TS-3831: Documentation update.
> Overridable error response type
> -------------------------------
>
> Key: TS-3831
> URL: https://issues.apache.org/jira/browse/TS-3831
> Project: Traffic Server
> Issue Type: New Feature
> Components: Configuration
> Reporter: Syeda Persia Aziz
>
> ATS has a set of error pages in the folder body_factory, namely
> access#denied, access#proxy_auth_required,connect#dns_failed... etc. All
> these error pages are loaded in a RawHashTable. When there is an error for
> e.g. access denied, ATS builds a error response of type access#denied. We
> can have an overridable config that will decide which custom error page to
> send to the client. This config will be set per remap rule. We can have the
> custom error pages in the body_factory folder and these pages will follow a
> specific naming convention for e.g. $var_access#denied,
> $var_access#proxy_auth_required, ….. Here $var is the overridable config
> (proxy.config.error.response.type).
> Example:
> in Remap.config
> map www.abcxyz.com www.efgijk.com @plugin=config.so
> @pparam=proxy.config.error.response.type=yahoo
> Now, if there is for e.g. a 'access denied' error, the build_error_response
> will build a customized error response of type yahoo_access#denied . If it
> can not find the type yahoo_access#denied, then it will simply build the
> default access#denied error response.
> Note: I already have a patch for this.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)