Unless things have changed, the scheme defined in the remapped URL is the scheme used when polling the parent server. If you enable debug, you'll see the scheme sent to the parent. A packet trace will also reveal the same.
On Wed, Mar 28, 2018 at 11:38 AM, Veiko Kukk <[email protected]> wrote: > Hi, > > No, only http. Connections to origin (via Internet) are made with https, but > internally we only do http (cheaper, simpler). > > Why do you think, parent logs about child connection are indicating CONNECT > (https)? > > 1522251150.831 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/htm > > Veiko > > > 2018-03-28 19:01 GMT+03:00 Jeremy Payne <[email protected]>: >> >> I think the issue is the child is sending a https request to the parent. >> Does the parent support https on port 3128 ? >> >> On Wed, Mar 28, 2018 at 10:45 AM, Veiko Kukk <[email protected]> wrote: >> > Hi, >> > >> > I'm trying to get ATS 7.1.2 working with single parent and failover to >> > origin. >> > "clients" make request against ATS internally with plain http, with >> > remap.config we map those requests to https. >> > regex_map http://storage.(.*).cloud.ovh.net >> > https://storage.$1.cloud.ovh.net >> > @plugin=cachekey.so @pparam=--remove-all-params=true >> > @pparam=--static-prefix=cloud_ovh_net >> > >> > parent.config >> > >> > dest_domain=. parent="192.168.1.52:3128" go_direct=false >> > >> > I've set go_direct to false as otherwise request would go directly to >> > origin. >> > >> > From diags.log, when starting up ATS: >> > [Mar 28 15:32:21.720] Server {0x2ae732c203c0} NOTE: traffic server >> > running >> > [Mar 28 15:32:21.826] Server {0x2ae73751e700} NOTE: cache enabled >> > [Mar 28 15:32:22.735] Server {0x2ae73751e700} NOTE: Parent initially >> > marked >> > as down 192.168.1.52:3128 >> > [Mar 28 15:32:47.695] Server {0x2ae73751e700} NOTE: Failure threshold >> > met >> > failcount:10 >= threshold:10, http parent proxy 192.168.1.52:3128 marked >> > down >> > >> > Why? >> > >> > # telnet 192.168.1.52 3128 >> > Trying 192.168.1.52... >> > Connected to 192.168.1.52. >> > Escape character is '^]'. >> > >> > There is proper working network connection between child and parent ATS. >> > >> > On parent access.log: >> > >> > 1522251150.831 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- >> > text/html >> > 1522251150.832 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- >> > text/html >> > 1522251150.832 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- >> > text/html >> > 1522251150.833 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- >> > text/html >> > 1522251152.789 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- >> > text/html >> > 1522251152.790 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- >> > text/html >> > 1522251152.791 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- >> > text/html >> > 1522251152.791 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- >> > text/html >> > 1522251157.344 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- >> > text/html >> > 1522251157.345 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- >> > text/html >> > 1522251157.345 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- >> > text/html >> > 1522251157.346 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- >> > text/html >> > 1522251167.693 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- >> > text/html >> > 1522251167.694 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- >> > text/html >> > 1522251167.694 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- >> > text/html >> > 1522251167.695 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- >> > text/htm >> > >> > Where does this come from?? >> > There is and should never be anything at "/" on parent. >> > I assume this is internal health check on child that tries to request >> > "/" on >> > parent and since it's obviously failing, will mark parent down and never >> > use >> > it. >> > >> > How to change how parent is tested? I found nothing regarding to parent >> > health check in documentation. >> > >> > Thanks, >> > Veiko >> > > >
