Re: mod_proxy chaining with a .pac file

2008-01-24 Thread Giovanni Donelli
Great. Thanks! This solve 50% of the problem. The other problem is to actually plug this into mod_proxy. Is there a hook a can use to override the connection to the remote server? What do you guys suggest? thanks! On Jan 24, 2008 12:50 PM, Ralf Mattes <[EMAIL PROTECTED]> wrote: > On Wed, 2008-

Re: mod_proxy chaining with a .pac file

2008-01-24 Thread Ralf Mattes
On Wed, 2008-01-23 at 22:19 +, Giovanni Donelli wrote: > Are you talking about a JS lib or a code that does what I need, support for > .pac proxy chaning? The later. Sorry, that library wasn't linked to from your original post, but it can be found on the wikipedia page. Here's a direct link:

Re: mod_proxy chaining with a .pac file

2008-01-23 Thread Giovanni Donelli
Are you talking about a JS lib or a code that does what I need, support for .pac proxy chaning? As with regards with JS I was going to use the WebKit's JavaScriptCore. > There _IS_ a library (C and python(?) interface) - downloadable from the > google code link posted in the first message ... tr

Re: mod_proxy chaining with a .pac file

2008-01-23 Thread Giovanni Donelli
On Jan 23, 2008 6:27 PM, Ralf Mattes <[EMAIL PROTECTED]> 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 web

Re: mod_proxy chaining with a .pac file

2008-01-23 Thread Ralf Mattes
On Wed, 2008-01-23 at 11:48 -0700, Joe Lewis wrote: > 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 do

Re: mod_proxy chaining with a .pac file

2008-01-23 Thread Joe Lewis
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 usi

Re: mod_proxy chaining with a .pac file

2008-01-23 Thread Ralf Mattes
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 configura

Re: mod_proxy chaining with a .pac file

2008-01-23 Thread Joe Lewis
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. That means it should be easy to create

Re: mod_proxy chaining with a .pac file - OFF-TOPIC?

2008-01-23 Thread Giovanni Donelli
I am trying to make Apache follow the same rules as the browser On Jan 23, 2008 2:34 PM, Joe Lewis <[EMAIL PROTECTED]> wrote: > Giovanni Donelli wrote: > > Take this pac file: > > $ curl http://wpad.wws.lan/wpad.dat > > function FindProxyForURL(url, host) > > { > > // simple hostname > >

Re: mod_proxy chaining with a .pac file - OFF-TOPIC?

2008-01-23 Thread Joe Lewis
Giovanni Donelli wrote: Take this pac file: $ curl http://wpad.wws.lan/wpad.dat function FindProxyForURL(url, host) { // simple hostname if (dnsDomainLevels(host) == 0) {return "DIRECT";} // match Host against local domains (w/ optional :port) var dom = /(127\.\d+\.\d+\.\d+|\.wws

Re: mod_proxy chaining with a .pac file - OFF-TOPIC?

2008-01-23 Thread Giovanni Donelli
Take this pac file: $ curl http://wpad.wws.lan/wpad.dat function FindProxyForURL(url, host) { // simple hostname if (dnsDomainLevels(host) == 0) {return "DIRECT";} // match Host against local domains (w/ optional :port) var dom = /(127\.\d+\.\d+\.\d+|\.wws\.lan\.?|\.local\.?)(:\d+)

Re: mod_proxy chaining with a .pac file - OFF-TOPIC?

2008-01-22 Thread Joe Lewis
First, I want to apologize for keeping this off-topic conversation one last time on the mailing list. I think if we allow this to be archived, any questions should be more easily answered using archives, hopefully reducing our work load. Giovanni Donelli wrote: Hi Thanks for your reply.

Re: mod_proxy chaining with a .pac file

2008-01-22 Thread Giovanni Donelli
Hi Thanks for your reply. I do apologize for not being clear. I will try to restate what I want to achieve. For the sake of this discussion allow me to simplify the browser/internet interaction as follows: User enters URL in browser -> **browser resolves domain name** -> connect to server x ->

Re: mod_proxy chaining with a .pac file

2008-01-22 Thread Joe Lewis
Giovanni Donelli wrote: Dear mod developers,I would like my apache proxy (mod_proxy) to take a .pac file for proxy chaining. To my understanding I can only set proxy chaining to a single server. This is very unfortunate because pac is used by a lot of people: http://en.wikipedia.org/wiki/Pro

mod_proxy chaining with a .pac file

2008-01-22 Thread Giovanni Donelli
Dear mod developers,I would like my apache proxy (mod_proxy) to take a .pac file for proxy chaining. To my understanding I can only set proxy chaining to a single server. This is very unfortunate because pac is used by a lot of people: http://en.wikipedia.org/wiki/Proxy_auto-config Question n