Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

PAC files with exceptions list

  • 05-01-2007 4:54pm
    #1
    Registered Users, Registered Users 2 Posts: 68 ✭✭


    Is it possible within a PAC file referencing a number of internet proxies to associate a proxy exception list with one specific internet proxy only.

    Example

    function FindProxyForURL(url, host) {

    if (url.substring(0, 27) == "http://foonet.foo-uk.intra/" ) {
    return "PROXY interfastpxy:8080";
    }

    if (url.substring(0, 24) == "https://shared-workspaces" ) {
    return "PROXY interfastpxy1:8080"; I want my list of exceptions to be associated with this proxy only
    }

    if (url.substring(0, 29) == "http://10.198.14.155/thintranet" ) {
    return "PROXY interfastpxy:8080";
    }


    // All other requests go through port 8080 of isa server
    return "PROXY interfastpxy:8080";
    }



    tanx
    alan:cool:


Comments

  • Registered Users, Registered Users 2 Posts: 68 ✭✭alancool


    Good morning maybe I should clarify what I would like to do.

    Currently my client IE settings are configured to use interfastpxy1 on port 8080 and there are a bunch of exceptions listed. I would like to use a pac file to achive this. Can anyone help?


  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 94,288 Mod ✭✭✭✭Capt'n Midnight


    yeah - here is a large one here to look at for examples

    www.schooner.com/~loverso/no-ads/

    of course microsoft's auto detect implimentation is messy, there are DNS and DHCP go figures - much easier to just type in the file location at first or you may have to change IE's proxy cache time if you intend to use fail over proxies.


  • Registered Users, Registered Users 2 Posts: 68 ✭✭alancool


    Tanx Capt'n Midnight your alway good for help but that PAC file was too complicated for little me.:D

    It took a bit of trial and error but the key syntax was:

    if (shExpMatch(host,"10.198.8.8") || shExpMatch(host,"10.198.10.12")) {
    return "DIRECT";


    Tanx
    Alan:cool:


Advertisement