Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 55322 invoked from network); 23 Jan 2008 22:14:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jan 2008 22:14:52 -0000 Received: (qmail 37427 invoked by uid 500); 23 Jan 2008 22:14:42 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 37404 invoked by uid 500); 23 Jan 2008 22:14:42 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 37393 invoked by uid 99); 23 Jan 2008 22:14:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2008 14:14:41 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of giovanni.donelli@gmail.com designates 209.85.146.183 as permitted sender) Received: from [209.85.146.183] (HELO wa-out-1112.google.com) (209.85.146.183) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2008 22:14:16 +0000 Received: by wa-out-1112.google.com with SMTP id k22so5536721waf.0 for ; Wed, 23 Jan 2008 14:14:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=ga6bsaPsuY1Ndm50CpHRFNGMeFxruFwKKKA/WjU5Igs=; b=nLopmJ1fshEtIbCebHGnHjej+qyAEtUIlZ3Kftgkp2ENrNGkbSZXK6Go6kOZp5ex2qnV/GYEDFULQLvDgtooV4wztAJN+SlEl2pMby5kK+bYkZQF3NprPMaB6nexBtzEL84shnnmrJGP+ShC2DHPWM1t9AtNecB0P+aIMXftqGA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=mj8VK/K7S/NfJRrGGrXsGBiLqJnZxri6UJrwAaDrvzKZnLP6H9u7o3oq6stgzWE+eeHhYSFM20blabnhIo7XhsR6wGWbLlbsRNXkqBeR+1yXMg9NKenRkTrq2Xjl78OXdzYER3OotlX65ovWpOTAWFBhdQWPYPDrgBXkb7VG7HU= Received: by 10.114.26.1 with SMTP id 1mr8403371waz.80.1201126462333; Wed, 23 Jan 2008 14:14:22 -0800 (PST) Received: by 10.115.108.14 with HTTP; Wed, 23 Jan 2008 14:14:22 -0800 (PST) Message-ID: Date: Wed, 23 Jan 2008 22:14:22 +0000 From: "Giovanni Donelli" To: modules-dev@httpd.apache.org, rm@seid-online.de Subject: Re: mod_proxy chaining with a .pac file In-Reply-To: <1201112856.6570.2.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_53410_248759.1201126462324" References: <47960031.1090609@joe-lewis.com> <479633D3.7070409@joe-lewis.com> <4797506B.4060000@joe-lewis.com> <479783A8.7080404@joe-lewis.com> <1201112856.6570.2.camel@localhost.localdomain> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_53410_248759.1201126462324 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Jan 23, 2008 6:27 PM, Ralf Mattes wrote: > On Wed, 2008-01-23 at 11:12 -0700, Joe Lewis wrote: > > Giovanni Donelli wrote: > > > I am trying to make Apache follow the same rules as the browser > > > > > > > Realize that the browser doesn't get the configurations for each website > > it visits, it only configures, then runs using the same configuration > > for every website. > > Realize that, since a .pac file is a ECMA-Script program, that > configuration can (and often will) be dynamic. The proxy needs to be > determined for each request. > > > That means it should be easy to create a simple module that has a single > > configuration directive that points to the next proxy in the chain, > > something like > > > > WPADConfiguration http://secondproxyserver.example.com/my-proxy-file.pac > > > > And then just configure mod_proxy, mod_proxy_http, and create a handler > > that prefaces all URL's with the proxy: string, set the proxyreq setting > > in the request_rec to an appropriate value, and return 1 to allow > > mod_proxy to handle the rest of it. > > No - that's too simple. The module needs to run the JS function for each > request and has to be able to dynamically set the proxy. > > > Cheers, RalfD > Thanks RalfD. You got exactly the point. ------=_Part_53410_248759.1201126462324--