Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-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 2148EF84D for ; Thu, 4 Apr 2013 09:52:53 +0000 (UTC) Received: (qmail 69022 invoked by uid 500); 4 Apr 2013 09:51:20 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 67840 invoked by uid 500); 4 Apr 2013 09:51:14 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 65365 invoked by uid 99); 4 Apr 2013 09:49:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Apr 2013 09:49:30 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tib1avivo@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; Thu, 04 Apr 2013 09:49:24 +0000 Received: by mail-wi0-f169.google.com with SMTP id c10so489997wiw.4 for ; Thu, 04 Apr 2013 02:49:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=n4YJCPBOvChQk0CqUQ3vVelId3D0rtbUxS5vXSAgayA=; b=vd0ein0Mit+zJ12NaT12XXFxZ0tqzOMjWwEHI+syiciwQ1Ku1TTLiuVprK6BnW1m4m V+uijt5URZTGwTCoYGhRJAV5TV2wcAeZt890G4llOOdCEZrQfE1ArBUP4PjIuB2ny5vM sjMABRCZ9GdcXuGPH3ln1m302RA4tacWcZRUTA4rjqMyld+dDUFxAd5asFxMiihpLSnk YQvZPPsSAR6ex4SSjvQjNiF9MmUGNp7/+Z1RYdil4Ydy853A/7iYiHNWM44nVbTTJdYI wG3o+e+tMmWIYqpRPHFdu76QF1WDfiAY4GPjaDtMmnA5tecQ6CLYFMbM6UCI/vbDaJdd Vc3g== X-Received: by 10.180.182.36 with SMTP id eb4mr28047525wic.8.1365068943065; Thu, 04 Apr 2013 02:49:03 -0700 (PDT) Received: from [192.168.3.101] (free.tib1.com. [88.189.186.52]) by mx.google.com with ESMTPS id fv2sm14840527wib.6.2013.04.04.02.49.01 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Apr 2013 02:49:02 -0700 (PDT) Message-ID: <515D4C8D.3040605@gmail.com> Date: Thu, 04 Apr 2013 11:49:01 +0200 From: Thibaut Lemaire User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: users@httpd.apache.org References: <515B04F0.5040007@gmail.com> <515B3D2C.1050504@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Problem with wildcard subdomains and ProxyPass Le 03/04/2013 11:34, Tom Evans a écrit : > On Tue, Apr 2, 2013 at 9:18 PM, Thibaut Lemaire wrote: >> Le 02/04/2013 18:45, Tom Evans a écrit : >> >>> Do you mean proxy - you want to connect to a different server, fetch >>> that content over the network to this server, and then deliver it to >>> the client? >> >> Yes, it's what I want to do. Isn't it the good way ? >> > Oh, I see what you are trying to do now. You want to request > 'facebook.com.mysite.com' and have apache proxy to 'facebook.com'. > > It would probably be easier to set up a real http proxy server and use > that instead, almost certainly this approach will fail at some point. > However - untested, but something like this should suffice: > > RewriteEngine on > RewriteLog logs/rewrite.log > RewriteLogLevel 5 > RewriteCond %{HTTP_HOST} (.*).MyDomain.tld$ > RewriteRule (.*) %1$1 [P] > > > If it doesn't work, there will be some lovely debug information in > logs/rewrite.log (relative to server root). > > Cheers > > Tom > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > Thank you Tom, it's the manner we found and will use. Have a good day, Thibaut --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org