You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Greg Dallavalle (Created) (JIRA)" <ji...@apache.org> on 2011/11/15 18:46:52 UTC

[jira] [Created] (TS-1024) remap_required 0 not functioning in revproxy mode

remap_required 0 not functioning in revproxy mode
-------------------------------------------------

                 Key: TS-1024
                 URL: https://issues.apache.org/jira/browse/TS-1024
             Project: Traffic Server
          Issue Type: Bug
          Components: Remap API
    Affects Versions: 3.0.2
            Reporter: Greg Dallavalle


with
[records.config]
proxy.config.url_remap.remap_required INT 0
proxy.config.http.parent_proxy_routing_enable INT 1
proxy.config.http.no_dns_just_forward_to_parent INT 1
ATS still requires a remap URL to be used.  The way I worked around this was to have remapped URLs to themselves:
[remap.config]
map http://example.com http://example.com
map http://sub.example.com http://sub.example.com

With those settings all requests are passed through to my origin, or "parent cache" servers.  The pass to the parent cache did not work in 3.0.1.  I had to build from the 3.0.x branch for this to function.
[parent.config]
dest_domain=.  parent="1.2.3.4:80; 4.5.6.7:80"  round_robin=strict

I think this is convoluted given my fairly common setup of two reverse proxies caching/load balancing round robin to a few origin servers.  I guess the only "bug" here is that the remap_required parameter is not functioning as well as it could be.  I hope for improvement in the way this setup is handled.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TS-1024) remap_required 0 not functioning in revproxy mode

Posted by "Greg Dallavalle (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179746#comment-13179746 ] 

Greg Dallavalle commented on TS-1024:
-------------------------------------

I successfully worked around this issue using:

regex_map http://(.*)/ http://$1/

Tested with 3.0.3 from 3.0.x branch.
                
> remap_required 0 not functioning in revproxy mode
> -------------------------------------------------
>
>                 Key: TS-1024
>                 URL: https://issues.apache.org/jira/browse/TS-1024
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Remap API
>    Affects Versions: 3.0.2
>            Reporter: Greg Dallavalle
>            Assignee: Leif Hedstrom
>            Priority: Minor
>              Labels: parent, remap_required
>             Fix For: 3.1.2
>
>
> with
> [records.config]
> proxy.config.url_remap.remap_required INT 0
> proxy.config.http.parent_proxy_routing_enable INT 1
> proxy.config.http.no_dns_just_forward_to_parent INT 1
> ATS still requires a remap URL to be used.  The way I worked around this was to have remapped URLs to themselves:
> [remap.config]
> map http://example.com http://example.com
> map http://sub.example.com http://sub.example.com
> With those settings all requests are passed through to my origin, or "parent cache" servers.  The pass to the parent cache did not work in 3.0.1.  I had to build from the 3.0.x branch for this to function.
> [parent.config]
> dest_domain=.  parent="1.2.3.4:80; 4.5.6.7:80"  round_robin=strict
> I think this is convoluted given my fairly common setup of two reverse proxies caching/load balancing round robin to a few origin servers.  I guess the only "bug" here is that the remap_required parameter is not functioning as well as it could be.  I hope for improvement in the way this setup is handled.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TS-1024) remap_required 0 not functioning in revproxy mode

Posted by "Leif Hedstrom (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-1024:
------------------------------

    Fix Version/s:     (was: 3.1.3)
                   sometime

Moving this out to to "later" for now.

So, the "issue" here is that enabling "reverse proxy" sort of interferes with the parent proxy behavior here. If you disable reverse proxy (non-intuitive), and make sure that all requests are proxied to a parent proxy, I think it should work. The thing is, enabling "reverse proxy" currently implies that some sort of "mapping" should be done. So, in a pure parent proxy setup, you want

{code}
CONFIG proxy.config.http.parent_proxy_routing_enable INT 1
CONFIG proxy.config.reverse_proxy.enabled INT 0
CONFIG proxy.config.url_remap.remap_required INT 0
{code}

And then, you shouldn't need anything at all in remap.config (it's never consulted since reverse_proxy is disabled).

You have to be pretty careful in this setup, and assure that you parent proxy every request (otherwise, since remap isn't required, you could become an open proxy). We have sort of overloaded too much semantics into these two configuration options, hence, we might want to revisit it later (and redo it completely). The way I tend to see it is that requiring (and configuring) remap also acts as a "whitelist" of what requests should be proxied.

Let me know what you think.

                
> remap_required 0 not functioning in revproxy mode
> -------------------------------------------------
>
>                 Key: TS-1024
>                 URL: https://issues.apache.org/jira/browse/TS-1024
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Remap API
>    Affects Versions: 3.0.2
>            Reporter: Greg Dallavalle
>            Assignee: Leif Hedstrom
>            Priority: Minor
>              Labels: parent, remap_required
>             Fix For: sometime
>
>
> with
> [records.config]
> proxy.config.url_remap.remap_required INT 0
> proxy.config.http.parent_proxy_routing_enable INT 1
> proxy.config.http.no_dns_just_forward_to_parent INT 1
> ATS still requires a remap URL to be used.  The way I worked around this was to have remapped URLs to themselves:
> [remap.config]
> map http://example.com http://example.com
> map http://sub.example.com http://sub.example.com
> With those settings all requests are passed through to my origin, or "parent cache" servers.  The pass to the parent cache did not work in 3.0.1.  I had to build from the 3.0.x branch for this to function.
> [parent.config]
> dest_domain=.  parent="1.2.3.4:80; 4.5.6.7:80"  round_robin=strict
> I think this is convoluted given my fairly common setup of two reverse proxies caching/load balancing round robin to a few origin servers.  I guess the only "bug" here is that the remap_required parameter is not functioning as well as it could be.  I hope for improvement in the way this setup is handled.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TS-1024) remap_required 0 not functioning in revproxy mode

Posted by "Leif Hedstrom (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-1024:
------------------------------

    Fix Version/s: 3.1.2
    
> remap_required 0 not functioning in revproxy mode
> -------------------------------------------------
>
>                 Key: TS-1024
>                 URL: https://issues.apache.org/jira/browse/TS-1024
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Remap API
>    Affects Versions: 3.0.2
>            Reporter: Greg Dallavalle
>            Priority: Minor
>              Labels: parent, remap_required
>             Fix For: 3.1.2
>
>
> with
> [records.config]
> proxy.config.url_remap.remap_required INT 0
> proxy.config.http.parent_proxy_routing_enable INT 1
> proxy.config.http.no_dns_just_forward_to_parent INT 1
> ATS still requires a remap URL to be used.  The way I worked around this was to have remapped URLs to themselves:
> [remap.config]
> map http://example.com http://example.com
> map http://sub.example.com http://sub.example.com
> With those settings all requests are passed through to my origin, or "parent cache" servers.  The pass to the parent cache did not work in 3.0.1.  I had to build from the 3.0.x branch for this to function.
> [parent.config]
> dest_domain=.  parent="1.2.3.4:80; 4.5.6.7:80"  round_robin=strict
> I think this is convoluted given my fairly common setup of two reverse proxies caching/load balancing round robin to a few origin servers.  I guess the only "bug" here is that the remap_required parameter is not functioning as well as it could be.  I hope for improvement in the way this setup is handled.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (TS-1024) remap_required 0 not functioning in revproxy mode

Posted by "Leif Hedstrom (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom reassigned TS-1024:
---------------------------------

    Assignee: Leif Hedstrom
    
> remap_required 0 not functioning in revproxy mode
> -------------------------------------------------
>
>                 Key: TS-1024
>                 URL: https://issues.apache.org/jira/browse/TS-1024
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Remap API
>    Affects Versions: 3.0.2
>            Reporter: Greg Dallavalle
>            Assignee: Leif Hedstrom
>            Priority: Minor
>              Labels: parent, remap_required
>             Fix For: 3.1.2
>
>
> with
> [records.config]
> proxy.config.url_remap.remap_required INT 0
> proxy.config.http.parent_proxy_routing_enable INT 1
> proxy.config.http.no_dns_just_forward_to_parent INT 1
> ATS still requires a remap URL to be used.  The way I worked around this was to have remapped URLs to themselves:
> [remap.config]
> map http://example.com http://example.com
> map http://sub.example.com http://sub.example.com
> With those settings all requests are passed through to my origin, or "parent cache" servers.  The pass to the parent cache did not work in 3.0.1.  I had to build from the 3.0.x branch for this to function.
> [parent.config]
> dest_domain=.  parent="1.2.3.4:80; 4.5.6.7:80"  round_robin=strict
> I think this is convoluted given my fairly common setup of two reverse proxies caching/load balancing round robin to a few origin servers.  I guess the only "bug" here is that the remap_required parameter is not functioning as well as it could be.  I hope for improvement in the way this setup is handled.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TS-1024) remap_required 0 not functioning in revproxy mode

Posted by "Greg Dallavalle (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Dallavalle updated TS-1024:
--------------------------------

    Priority: Minor  (was: Major)
    
> remap_required 0 not functioning in revproxy mode
> -------------------------------------------------
>
>                 Key: TS-1024
>                 URL: https://issues.apache.org/jira/browse/TS-1024
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Remap API
>    Affects Versions: 3.0.2
>            Reporter: Greg Dallavalle
>            Priority: Minor
>              Labels: parent, remap_required
>
> with
> [records.config]
> proxy.config.url_remap.remap_required INT 0
> proxy.config.http.parent_proxy_routing_enable INT 1
> proxy.config.http.no_dns_just_forward_to_parent INT 1
> ATS still requires a remap URL to be used.  The way I worked around this was to have remapped URLs to themselves:
> [remap.config]
> map http://example.com http://example.com
> map http://sub.example.com http://sub.example.com
> With those settings all requests are passed through to my origin, or "parent cache" servers.  The pass to the parent cache did not work in 3.0.1.  I had to build from the 3.0.x branch for this to function.
> [parent.config]
> dest_domain=.  parent="1.2.3.4:80; 4.5.6.7:80"  round_robin=strict
> I think this is convoluted given my fairly common setup of two reverse proxies caching/load balancing round robin to a few origin servers.  I guess the only "bug" here is that the remap_required parameter is not functioning as well as it could be.  I hope for improvement in the way this setup is handled.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TS-1024) remap_required 0 not functioning in revproxy mode

Posted by "Leif Hedstrom (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-1024:
------------------------------

    Fix Version/s:     (was: 3.1.2)
                   3.1.3
    
> remap_required 0 not functioning in revproxy mode
> -------------------------------------------------
>
>                 Key: TS-1024
>                 URL: https://issues.apache.org/jira/browse/TS-1024
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Remap API
>    Affects Versions: 3.0.2
>            Reporter: Greg Dallavalle
>            Assignee: Leif Hedstrom
>            Priority: Minor
>              Labels: parent, remap_required
>             Fix For: 3.1.3
>
>
> with
> [records.config]
> proxy.config.url_remap.remap_required INT 0
> proxy.config.http.parent_proxy_routing_enable INT 1
> proxy.config.http.no_dns_just_forward_to_parent INT 1
> ATS still requires a remap URL to be used.  The way I worked around this was to have remapped URLs to themselves:
> [remap.config]
> map http://example.com http://example.com
> map http://sub.example.com http://sub.example.com
> With those settings all requests are passed through to my origin, or "parent cache" servers.  The pass to the parent cache did not work in 3.0.1.  I had to build from the 3.0.x branch for this to function.
> [parent.config]
> dest_domain=.  parent="1.2.3.4:80; 4.5.6.7:80"  round_robin=strict
> I think this is convoluted given my fairly common setup of two reverse proxies caching/load balancing round robin to a few origin servers.  I guess the only "bug" here is that the remap_required parameter is not functioning as well as it could be.  I hope for improvement in the way this setup is handled.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TS-1024) remap_required 0 not functioning in revproxy mode

Posted by "Igor Galić (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179768#comment-13179768 ] 

Igor Galić commented on TS-1024:
--------------------------------

Perhaps we have different ideas on how should be configured.

Perhaps we should document the right way this should configured, or a handful of sensible ways it can be configured.

The {{regex_map}} doesn't make sense IMO, as it adds a lot of overhead

(Unless, maybe, something like this is possible:

{noformat}
regex_map ^ $0
{noformat}

This would, regex wise, at least, be very cheap.)
                
> remap_required 0 not functioning in revproxy mode
> -------------------------------------------------
>
>                 Key: TS-1024
>                 URL: https://issues.apache.org/jira/browse/TS-1024
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Remap API
>    Affects Versions: 3.0.2
>            Reporter: Greg Dallavalle
>            Assignee: Leif Hedstrom
>            Priority: Minor
>              Labels: parent, remap_required
>             Fix For: 3.1.2
>
>
> with
> [records.config]
> proxy.config.url_remap.remap_required INT 0
> proxy.config.http.parent_proxy_routing_enable INT 1
> proxy.config.http.no_dns_just_forward_to_parent INT 1
> ATS still requires a remap URL to be used.  The way I worked around this was to have remapped URLs to themselves:
> [remap.config]
> map http://example.com http://example.com
> map http://sub.example.com http://sub.example.com
> With those settings all requests are passed through to my origin, or "parent cache" servers.  The pass to the parent cache did not work in 3.0.1.  I had to build from the 3.0.x branch for this to function.
> [parent.config]
> dest_domain=.  parent="1.2.3.4:80; 4.5.6.7:80"  round_robin=strict
> I think this is convoluted given my fairly common setup of two reverse proxies caching/load balancing round robin to a few origin servers.  I guess the only "bug" here is that the remap_required parameter is not functioning as well as it could be.  I hope for improvement in the way this setup is handled.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Assigned] (TS-1024) remap_required 0 not functioning in revproxy mode

Posted by "Leif Hedstrom (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom reassigned TS-1024:
---------------------------------

    Assignee:     (was: Leif Hedstrom)
    
> remap_required 0 not functioning in revproxy mode
> -------------------------------------------------
>
>                 Key: TS-1024
>                 URL: https://issues.apache.org/jira/browse/TS-1024
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Remap API
>    Affects Versions: 3.0.2
>            Reporter: Greg Dallavalle
>            Priority: Minor
>              Labels: parent, remap_required
>             Fix For: sometime
>
>
> with
> [records.config]
> proxy.config.url_remap.remap_required INT 0
> proxy.config.http.parent_proxy_routing_enable INT 1
> proxy.config.http.no_dns_just_forward_to_parent INT 1
> ATS still requires a remap URL to be used.  The way I worked around this was to have remapped URLs to themselves:
> [remap.config]
> map http://example.com http://example.com
> map http://sub.example.com http://sub.example.com
> With those settings all requests are passed through to my origin, or "parent cache" servers.  The pass to the parent cache did not work in 3.0.1.  I had to build from the 3.0.x branch for this to function.
> [parent.config]
> dest_domain=.  parent="1.2.3.4:80; 4.5.6.7:80"  round_robin=strict
> I think this is convoluted given my fairly common setup of two reverse proxies caching/load balancing round robin to a few origin servers.  I guess the only "bug" here is that the remap_required parameter is not functioning as well as it could be.  I hope for improvement in the way this setup is handled.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TS-1024) remap_required 0 not functioning in revproxy mode

Posted by "Leif Hedstrom (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179820#comment-13179820 ] 

Leif Hedstrom commented on TS-1024:
-----------------------------------

Ideally we'd fix it so that parent proxying doesn't require a remap rule (unless remap.required == 1).
                
> remap_required 0 not functioning in revproxy mode
> -------------------------------------------------
>
>                 Key: TS-1024
>                 URL: https://issues.apache.org/jira/browse/TS-1024
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Remap API
>    Affects Versions: 3.0.2
>            Reporter: Greg Dallavalle
>            Assignee: Leif Hedstrom
>            Priority: Minor
>              Labels: parent, remap_required
>             Fix For: 3.1.2
>
>
> with
> [records.config]
> proxy.config.url_remap.remap_required INT 0
> proxy.config.http.parent_proxy_routing_enable INT 1
> proxy.config.http.no_dns_just_forward_to_parent INT 1
> ATS still requires a remap URL to be used.  The way I worked around this was to have remapped URLs to themselves:
> [remap.config]
> map http://example.com http://example.com
> map http://sub.example.com http://sub.example.com
> With those settings all requests are passed through to my origin, or "parent cache" servers.  The pass to the parent cache did not work in 3.0.1.  I had to build from the 3.0.x branch for this to function.
> [parent.config]
> dest_domain=.  parent="1.2.3.4:80; 4.5.6.7:80"  round_robin=strict
> I think this is convoluted given my fairly common setup of two reverse proxies caching/load balancing round robin to a few origin servers.  I guess the only "bug" here is that the remap_required parameter is not functioning as well as it could be.  I hope for improvement in the way this setup is handled.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira