Ok..  on your child server, set your parent.config to use: parent_is_proxy=false

"the list of parents and secondary parents are the origin servers
go_direct flag is ignored and origins are selected using the specified
round_robin algorithm. The FQDN is removed from the http request
line."

Your child to parent request will then switch from:

GET http://originserver.cdn.lab:8080/player.html HTTP/1.1^M
Host: vcache-edge-1.cdn.lab:31695^M

to:

GET /player.html HTTP/1.1^M
Host: vcache-edge-1.cdn.lab:31695^M

On Sun, Jun 28, 2020 at 6:16 AM Avi Weit <w...@il.ibm.com> wrote:
>
> Hi Jeremy,
>
> My parent cache is behind kubernetes ingress controller.
> I need the Host: header be set with: vcache-mid-1.cdn.lab:31695
>
> Please find below my response embodied in your reply.
>
> >> ensure your parent cache will recognize requests for
> >> originserver.cdn.lab:8080
>
> I think my parent cache is configured fine:
> map http://originserver.cdn.lab:8080/http://originserver.cdn.lab:8080/
>
> >> This below is the request to your parent cache.
> >>
> >> GET http://originserver.cdn.lab:8080/player.htmlHTTP/1.1^M
> >> The HOST header in this request will not be honored.
>
> Yes, I can see that the Host: header is set to:
> originserver.cdn.lab:8080
>
> >> In this context, you have to account for the FQDN seen in the GET request.
>
> I am not sure whether accounting for the FQDN seen in the GET request will 
> work for me. My parent cache is behind kubernetes ingress controller.
> I need the Host: header be set with: vcache-mid-1.cdn.lab:31695
>
> >> If you are not using direct_to_origin in the parent.config, then the
> I am not. My go_direct is set to "false"
>
> >> easiest solution is to
> >> modify the origin definition in your edge remap.config.
> >> Or modify the remap on your parent to match the above FQDN seen in the
> >> GET request.
>
> My parent already matches the above FQDN seen in the GET request
>
> Thanks,
> Avi Weit
>
>

Reply via email to