You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/08/15 13:25:00 UTC

[jira] [Commented] (TC-353) Can't use CNAME hostname with "ccr" prefix

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

ASF GitHub Bot commented on TC-353:
-----------------------------------

GitHub user smalenfant opened a pull request:

    https://github.com/apache/incubator-trafficcontrol/pull/813

    [TC-353] Can't use CNAME hostname with "ccr" prefix

    - Replaced regex from ccr to http_routing

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

    $ git pull https://github.com/smalenfant/incubator-trafficcontrol sm-tc-353

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

    https://github.com/apache/incubator-trafficcontrol/pull/813.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 #813
    
----
commit f44671769e2c1798561711d6a65989d8ac7eb778
Author: Steve Malenfant <st...@cox.com>
Date:   2017-08-15T13:21:44Z

    Allow CNAME to use ccr
    - Replaced regex from ccr to http_routing

----


> Can't use CNAME hostname with "ccr" prefix
> ------------------------------------------
>
>                 Key: TC-353
>                 URL: https://issues.apache.org/jira/browse/TC-353
>             Project: Traffic Control
>          Issue Type: Bug
>          Components: Traffic Ops
>    Affects Versions: 2.1.0, 2.0.0, 1.8.0
>            Reporter: Steve Malenfant
>            Priority: Minor
>              Labels: cname, configuration, host_regex
>
> If you put a HOST_REGEX of "ccr.example.kabletown.net", it will expand to the server hostname like "edge01.example.kabletown.net". This makes the remap.config to have the wrong hostname. This might not affect anything but it should be changed to something unrelated to a specific prefix.
> The code ConfigFile.pm is causing the current behavior :
> {code}
> 				my $hname = $ds_type =~ /^DNS/ ? "edge" : "ccr";
> 				my $portstr = "";
> ...
> 	$map_from =~ s/ccr/$host_name/;
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)