Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 79074 invoked from network); 21 Apr 2010 10:55:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Apr 2010 10:55:36 -0000 Received: (qmail 27660 invoked by uid 500); 21 Apr 2010 10:55:33 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 27476 invoked by uid 500); 21 Apr 2010 10:55:29 -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 27468 invoked by uid 99); 21 Apr 2010 10:55:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Apr 2010 10:55:28 +0000 X-ASF-Spam-Status: No, hits=-1.3 required=10.0 tests=AWL,FREEMAIL_FROM,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tevans.uk@googlemail.com designates 209.85.218.226 as permitted sender) Received: from [209.85.218.226] (HELO mail-bw0-f226.google.com) (209.85.218.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Apr 2010 10:55:23 +0000 Received: by bwz26 with SMTP id 26so6932264bwz.27 for ; Wed, 21 Apr 2010 03:55:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type :content-transfer-encoding; bh=cdJan1UbSJSkfZuFFE9+qYum3UfdbA/KIfg4zYTVcLA=; b=RLIYFDhp4PvdkBwZ9ph3aCbZGka0YK3PBqHqiD2mnRAYnZd13UHuj/QeXI24AFdQkn VHfDheHECE3EbUjumKfEiwIFAfodzXVBPEtMOixU8mLp2aZMiY33/D14Nk060tL4legp C5L2Wa7u5ORp4edG0J+Ax+xnxeU9sSBh1LcaE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Gkri4rbvlxTxDaOEbtc+B2L+qw7+VFWtEsQGWmUQ8L8ExVihJbl2SBidr4AeLT8XuQ QKXcKlOmwnqLofd/54DuKtQWZHdDF25uRE+ZWmmrodfKOrPSbJEIsJzVyWOvxqtxfNMZ dqzMSdOlG8fkTkZVaUOjlkI6ArCkQxwXQaE1M= MIME-Version: 1.0 Received: by 10.239.142.17 with HTTP; Wed, 21 Apr 2010 03:55:01 -0700 (PDT) In-Reply-To: References: Date: Wed, 21 Apr 2010 11:55:01 +0100 Received: by 10.239.142.211 with SMTP id h19mr726832hba.164.1271847301629; Wed, 21 Apr 2010 03:55:01 -0700 (PDT) Message-ID: From: Tom Evans To: users@httpd.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [users@httpd] Running script from configuration file of Apache2 On Wed, Apr 21, 2010 at 11:24 AM, Petr Hracek wrote: > Hello *, > > I would like to ask you on the one interesting think: > I need to=C2=A0proxy the requests to the specified url to a=C2=A0dynamica= lly generated > address. > Instead of: > > =C2=A0=C2=A0=C2=A0 ProxyPass=C2=A0 http://192.0.2.25:8080/CBAdmin/ > =C2=A0=C2=A0=C2=A0 ProxyPassReverse=C2=A0=C2=A0=C2=A0 http://192.0.2.25:8= 080/CBAdmin/ > =C2=A0=C2=A0=C2=A0 ProxyPassReverseCookiePath /CBAdmin /CAP > =C2=A0=C2=A0=C2=A0 Order Allow,Deny > =C2=A0=C2=A0=C2=A0 Allow from all > > There should be something like that instead of IP address there will > be a script like generate_forward_address > > I think that the mod_macro is not helpful here. I also=C2=A0cannot use > RewriteRule [P] which has more possibilities because I need the > ProxyPassReverse as well. > > Do you have any idea how to solve it? > That is incorrect; ProxyPassReverse does not require ProxyPass, and is more than happy to work with RewriteRule ... [P]. You can't do it with scripts, but you should be able to do it with a RewriteRule, and multiple ProxyPassReverse, one for each backend you could redirect to. Actually you could do it with a script, using a program map to generate the rewrite. I've never used this myself, it looks like it might impact performance a bit to me. Cheers Tom --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org