You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2010/09/02 17:19:00 UTC

[jira] Commented: (TS-432) Unable to have the same origin server in remap.config on a diffrent map line on https

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

Leif Hedstrom commented on TS-432:
----------------------------------

Ah, I get it now, it's the reverse map that causes this. There's no way you can do this (how would it know which rule to pick?), so you'll have to decide amongst the two.

Note that reverse_map is used to rewrite Location: headers in 301/302 responses. If you really need to have two reverse maps like this (also, there's a typo in the first one above), you'll need to have different origin server names. There's really no way around this.

I'm willing to be several markka that if you just do

map http://foo.bar.com http:/bar.com
map https://foo.bar.com http://bar.com

reverse_map http://bar.com http://foo.bar.com


It'll work. So, closing this for now.

> Unable to have the same origin server in remap.config on a diffrent map line on https
> -------------------------------------------------------------------------------------
>
>                 Key: TS-432
>                 URL: https://issues.apache.org/jira/browse/TS-432
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Security
>    Affects Versions: 2.1.2
>         Environment: Ubuntu 10.04.1 64 - Traffic-Server 2.1.2 - HTTPS
>            Reporter: Wyn Williams
>   Original Estimate: 96h
>  Remaining Estimate: 96h
>
> When configuring SSL Termination placing the the same origin server in both mapping lines results in a duplicate error:
> Example: 
> map http://foo.bar.com  http://bar.com
> reverse__map http://bar.com  http://foo.bar.com
> map https://foo.bar.com http://bar.com
> reverse_map http://bar.com  https://foo.bar.com
> It is the same with or without reverse_map,  changing the origin server works and having the origin server as https://bar.com also works.
> Error message -   ERROR Cannot insert duplicate! - ERROR Couldn't insert into trie! - ERROR Could not insert new mapping - ERROR: Could not add rule at line #129; Continuing with remaining lines
> Time estimate to fix is based on being a newbie who has not dug into the vitals yet so a random guess (I WILL be diggin in though but may not be able to fix it) and hopefully wrong

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.