Page 1 of 1

Changing proxy settings

Posted: Tue Mar 15, 2005 9:26 am
by mjacobson
I need to be able to use different proxies during a walk depending on domain address. Currently we have 4 different proxies for different domains. With our browsers, we point to a proxy-pac file that does this for us. Is there a way with Webinator to do this, or can I point Webinator to the proxy-pac script to handle this setting for me?

Thanks,

Changing proxy settings

Posted: Thu Sep 29, 2005 12:10 pm
by kaiserpe
Can anyone clue me in on how to do this? I see a regular expression in there, but how do I:

a. Check for a specific URL partial / full match
b. Set up a conditional to switch to a different proxy based on that match?

Thanks,
Paul

Changing proxy settings

Posted: Thu Sep 29, 2005 2:03 pm
by mark
Here's one way

<switch $u><!-- or whatever var has the url -->
<case matches 'http://site1*'><urlcp proxy 'http://proxy1'>
<case matches 'http://site2*'><urlcp proxy 'http://proxy2'>
<default><urlcp proxy "">
</switch>