[ 
https://issues.apache.org/jira/browse/TS-3831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14662526#comment-14662526
 ] 

ASF GitHub Bot commented on TS-3831:
------------------------------------

GitHub user persiaAziz opened a pull request:

    https://github.com/apache/trafficserver/pull/273

    TS-3831: overridable error response type

    Provision for custom error page

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/persiaAziz/trafficserver TS-3831

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/trafficserver/pull/273.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #273
    
----
commit ee73fa5f7702d5ef1bcf1b723867cca95524ae63
Author: Syeda Persia Aziz <persia.a...@yahoo.com>
Date:   2015-08-07T21:55:29Z

    TS-3831: overridable error response type

commit 1d28d70af6d67b533082aa1d44137897485cfd4e
Author: Syeda Persia Aziz <persia.a...@yahoo.com>
Date:   2015-08-07T22:00:37Z

    remove whitespaces

----


> 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_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)

Reply via email to