From users-return-7153-archive-asf-public=cust-asf.ponee.io@trafficserver.apache.org Thu Jul 19 07:10:03 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4F76A180630 for ; Thu, 19 Jul 2018 07:10:03 +0200 (CEST) Received: (qmail 49389 invoked by uid 500); 19 Jul 2018 05:10:02 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 49380 invoked by uid 99); 19 Jul 2018 05:10:02 -0000 Received: from mail-relay.apache.org (HELO mailrelay1-lw-us.apache.org) (207.244.88.152) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jul 2018 05:10:02 +0000 Received: from mail-it0-f52.google.com (mail-it0-f52.google.com [209.85.214.52]) by mailrelay1-lw-us.apache.org (ASF Mail Server at mailrelay1-lw-us.apache.org) with ESMTPSA id 3A137CEC for ; Thu, 19 Jul 2018 05:10:01 +0000 (UTC) Received: by mail-it0-f52.google.com with SMTP id g141-v6so5225150ita.4 for ; Wed, 18 Jul 2018 22:10:01 -0700 (PDT) X-Gm-Message-State: AOUpUlHlmu/jN1Ox/3oVM8IG3GbRn5Oh/fmNh9h5a27UwrfqU6fLf2c6 AmPeEJRiql5WuXcuf8BQom2e7D4Vk9RmP6kBlw== X-Google-Smtp-Source: AAOMgpeKFhNqLk47EziSoX+trOj4xgMT7hmS7GPSG2BTIV5EHFaveTkJADBBHuiGNEFIbtnHcw0rAlDj+fGhGHssOQ8= X-Received: by 2002:a24:190c:: with SMTP id b12-v6mr4370800itb.79.1531977000414; Wed, 18 Jul 2018 22:10:00 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:2044:0:0:0:0:0 with HTTP; Wed, 18 Jul 2018 22:09:59 -0700 (PDT) From: Miles Libbey Date: Wed, 18 Jul 2018 22:09:59 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: remap.config trailing slash problem To: users@trafficserver.apache.org Content-Type: text/plain; charset="UTF-8" Hi- Could you show the results of a cURL both through your ATS and direct to the origin? eg through your ATS -- change 192.168.0.1 to its IP, and port 80 to its http port $ curl -IX GET -x 192.168.0.1:80 http://www.abc.com/c ... and to the origin: $ curl -IX GET http://www.abc.com/c miles On Wed, Jul 18, 2018 at 12:24 AM, Sean G wrote: > Hi Everyone, First time question, so please take it easy with me :) I'm > using ATS to act as a basic forwarding proxy to a known end-point. > Everything is working exactly as I want it to apart from one minor issue. > Works fine example ---------------------- Call target URL (e.g. > http://www.abc.com/c/) and replacement content (http://www.xyz.com/c/) is > called and shown. i.e. http://www.abc.com/c/ remains in the browser Issue > example (notice the missing end slash on the target url!) ---------------- > Call target URL (e.g. http://www.abc.com/c) but replacement > (http://www.xyz.com/c/) is shown as as browser URL like its doing a > redirect? i.e. http://www.xyz.com/c/ is shown in bowser instead of > http://www.abc.com/c This seems to be all because of a missing end slash. > records.config has all default settings apart from server_ports STRING > r-pass:80 and proxy.config.http.cache.http 0 (I dont wish to cache). > remap.config has the following... map http://www.abc.com/ > http://www.xyz.com/ I tried reverse_mapand redirect but with no success. Can > someone point me in the right direction please? Many thanks in advance. > ________________________________ > Sent from the Apache Traffic Server mailing list archive at Nabble.com.