Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to configure a proxy pac file that has the same list of exception as the ones I have on IE -> Internet Options -> Connections -> LAN settings -> Advanced and after I can see the exception in the part that reads:

"Do not use proxy server for addresses beginning with:" "*.blabla.com;"

I've tried using DnsDomainIs, shExpMatch (example below) and it does not go through.

function FindProxyForURL(url, host)
{
    if (shExpMatch(host, "*.blabla.com")) { return "DIRECT"; }
        ...

The PAC file is working fine for the rest. Can anybody see what am I missing here?

share|improve this question
add comment

2 Answers

As it should be a regex, you should maybe do a

.*\.blabla\.com
share|improve this answer
    
Thank you DOM. Seems to be almost working. I had a typo. My main problem with these files is I don't know how to debug the file. Do you have any idea how to debug it? –  Artur Carvalho Dec 30 '11 at 15:18
    
I dont' think you can debug these scripts. Type a new condition, test it, and add the next rule, then test it again, it is my proposition ! –  Dom Jan 2 '12 at 8:19
1  
I found out how to fix it by trial and error. You can debug it: stackoverflow.com/questions/621004/… –  Artur Carvalho Jan 2 '12 at 9:16
    
Thanks +1 for this utility ! –  Dom Jan 2 '12 at 9:39
add comment
up vote 0 down vote accepted

Found the solution with this http://code.google.com/p/pacparser/.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.