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 603E610F3D for ; Mon, 12 Aug 2013 02:25:17 +0000 (UTC) Received: (qmail 37494 invoked by uid 500); 12 Aug 2013 02:25:16 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 37457 invoked by uid 500); 12 Aug 2013 02:25:16 -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 37449 invoked by uid 99); 12 Aug 2013 02:25:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Aug 2013 02:25:16 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of petru.ghita@gmail.com designates 209.85.212.169 as permitted sender) Received: from [209.85.212.169] (HELO mail-wi0-f169.google.com) (209.85.212.169) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Aug 2013 02:25:11 +0000 Received: by mail-wi0-f169.google.com with SMTP id f14so1256397wiw.4 for ; Sun, 11 Aug 2013 19:24:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=j4eUs2oBsmjhXg8Do0yBGxrtELxMTmh6cTQYJrIaCdE=; b=HnhA/H6AOk5Qx9GYRfonKX+9aslsfdH/O93Nhoa5EVRaazg3YRzuycJkAYYf1+V29Z gxupVG6Y8gd7J851kSd4K3L+/5SzTvi2pWMHzh544sB58dgt/eFMwPzhMmkIut3ewgxY 0L8Ay93pHRVnw0Fu8FUt9rKQr40/E30kHhYmlnNyxIE16F2+oGvSFvIkDkcJRvS6Mipe aXI4k66ncLe1UiOAf8ZSAbLPWOM1lXiz/YlGtQjISUnw+HYMsx5Os6SvCAET6KL4WevK t9xQdp1QU8mIqJ3ODZldf1ETfAqt8p2r/dq43OSv+3KRiBFoUf72jfAI1fA4J3QyiShx oARg== X-Received: by 10.194.234.100 with SMTP id ud4mr11483491wjc.44.1376274290372; Sun, 11 Aug 2013 19:24:50 -0700 (PDT) Received: from [192.168.1.59] (82.158.220.204.dyn.user.ono.com. [82.158.220.204]) by mx.google.com with ESMTPSA id o10sm13683506wiz.5.2013.08.11.19.24.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 11 Aug 2013 19:24:50 -0700 (PDT) Message-ID: <52084771.4070105@gmail.com> Date: Mon, 12 Aug 2013 04:24:49 +0200 From: Petru Ghita User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8 MIME-Version: 1.0 To: users@trafficserver.apache.org Subject: Re: remap DELETE method References: <52084373.4020107@gmail.com> <117F9F56-8858-489B-B64D-D6B974B21EE0@apache.org> In-Reply-To: <117F9F56-8858-489B-B64D-D6B974B21EE0@apache.org> X-Enigmail-Version: 1.5.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hC9HxfUk5JLvoqWcWspIhRG76qX6qqemg" X-Virus-Checked: Checked by ClamAV on apache.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --hC9HxfUk5JLvoqWcWspIhRG76qX6qqemg Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable No, it's a lot simpler. I have a Confluence instance behind a traffic server, and it needs to invoke a DELETE method to delete a label in this case. So I get the following message in the squid.log: 1376273947.688 0 x.x.x.x ERR_PROXY_DENIED/403 488 DELETE http://10.0.18.101:8090/rest/ui/1.0/content/5406906/label/6356993 - DIRECT/- text/html - Of course the GET methods work perfectly and they are targeted to the same internal IP as the DELETE methods. My remap.config had this particular mapping as: map http://mydomain.com http://10.0.18.101:8090 so after reading into that file documentation I tried to modify it as: #map http://mydomain.com http://10.0.18.101:8090 @action=3Dallow @method=3DDELETE @src_ip=3D0.0.0.0-255.255.255.255 Hoping that it'd solve the issue, but it does not. Thank you, Petru Ghita On 08/12/2013 04:11 AM, Leif Hedstrom wrote: > On Aug 11, 2013, at 8:07 PM, Petru Ghita wrote:= >=20 >> Hello, >> >> I need to remap a DELETE method to an origin server. >> Looking into remap.config I figured I should use something like: >> >> map http://mydomain.com http://10.0.18.101:8090 @action=3Dallow >> @method=3DDELETE @src_ip=3D0.0.0.0-255.255.255.255 >=20 > Is the expectation that you want to map DELETE to a different origin th= an the GET ? If so, that's not possible using the remap.config (you'd hav= e to write a plugin in C/C++ or Lua). >=20 > What the src_ip and method directives specifies are ACLs, i.e. allow DE= LETE from the IP range. >=20 > -- Leif >=20 --hC9HxfUk5JLvoqWcWspIhRG76qX6qqemg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlIIR3EACgkQt6IL6XzynQQ8bQCg0oOMnkn4bkgtzOYQFyUwKaod biwAn3H6cwkcr9Kz9MbWYbw0sOPklJUn =tP75 -----END PGP SIGNATURE----- --hC9HxfUk5JLvoqWcWspIhRG76qX6qqemg--