Return-Path: X-Original-To: apmail-trafficserver-users-archive@www.apache.org Delivered-To: apmail-trafficserver-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5BE6A18E07 for ; Tue, 13 Oct 2015 20:57:55 +0000 (UTC) Received: (qmail 72398 invoked by uid 500); 13 Oct 2015 20:57:42 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 72339 invoked by uid 500); 13 Oct 2015 20:57:42 -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 72329 invoked by uid 99); 13 Oct 2015 20:57:42 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2015 20:57:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 0951D180A60 for ; Tue, 13 Oct 2015 20:57:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.148 X-Spam-Level: *** X-Spam-Status: No, score=3.148 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id wQANThUq2yNA for ; Tue, 13 Oct 2015 20:57:41 +0000 (UTC) Received: from mail-ig0-f171.google.com (mail-ig0-f171.google.com [209.85.213.171]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 6CC6E439ED for ; Tue, 13 Oct 2015 20:57:41 +0000 (UTC) Received: by igsu6 with SMTP id u6so2691307igs.1 for ; Tue, 13 Oct 2015 13:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=So6aS6sXzlPXIZvENbY0RMBrRvRiImef6ilk3kwbmSY=; b=UnS2kUwthabh7wYact29RQtLHebGMT+Rl+8QC86A/IrPnJGNkiDKcdGuV+ao5O6JAb QFble7jiaEkNVgsBlt1DlF2wOsdxik8CluXXk5YRyEt5bSAFin0xGb+iy4GuoWSxkQnW oPwksdKd1JByu0KtVLgqbUoyKJ6HKp0UgIJ2qGb6KsnPIPsscLDUhmGvGPDyo/wflV6V dXqlPy0OgzYreGQxJbVfyLUXP14jX7mzRpILHY5ajWEKv470b5yz+9Qhw7Y6e9E70X8b 6jgqhAdc1alhH5EmR68+pOrsyhiG0OZ7Buf+eXYIhlLc9+oOSrjaTNmTJVxUy/QpNwEQ Cr3g== MIME-Version: 1.0 X-Received: by 10.50.41.74 with SMTP id d10mr66894igl.94.1444769861033; Tue, 13 Oct 2015 13:57:41 -0700 (PDT) Received: by 10.36.116.195 with HTTP; Tue, 13 Oct 2015 13:57:40 -0700 (PDT) Date: Tue, 13 Oct 2015 15:57:40 -0500 Message-ID: Subject: Following Origin Redirect From: Jeremy Payne To: users@trafficserver.apache.org Content-Type: multipart/alternative; boundary=089e01229c145963c5052202b2af --089e01229c145963c5052202b2af Content-Type: text/plain; charset=UTF-8 Version - ATS 5.3.2 Mode - Reverse Proxy Anyone have any pointers on configuring ATS to follow HTTP redirects(301/302) handed by the origin server ? The goal here is to have ATS follow the redirect on behalf of the client, instead of sending the redirect back downstream. This seems doable in Lua(via luacurl .. ts.fetch not available in 5.3.2), but I cant seem to 'restart' the transaction after reading the origin response headers. Another issue I see here is being able to stream the final(after the redirect) response immediately back to the end user(read_while_writer). In this current implementation(or with my limited understanding), it seems I would have to first store the final response before I could send back downstream. I have seen similar approaches with varnish and nginx however implementation is very hacky.. which is to be expected as this is very unconventional and probably against spec. Thanks in advance. --089e01229c145963c5052202b2af Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Version - ATS 5.3.2
Mode - Reverse= Proxy

Anyone have any pointers on configuring ATS to fol= low HTTP redirects(301/302) handed by the origin server ?
The= goal here is to have ATS follow the redirect on behalf of the client, inst= ead of sending the redirect back downstream.

This seems d= oable in Lua(via luacurl .. ts.fetch not available in 5.3.2), but I cant se= em to 'restart' the transaction after reading the origin response h= eaders.
Another issue I see here is being able to stream the final(afte= r the redirect) response immediately back to the end user(read_while_writer= ).
In this current implementation(or with my limited understa= nding), it seems I would have to first store the final response before I co= uld send back downstream.

I have seen similar approaches with varnis= h and nginx however implementation is very hacky.. which is to be expected = as this is very unconventional and probably against spec.

Thanks in advance.




--089e01229c145963c5052202b2af--