Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1523
  • Last Modified:

Creating a proxy.pac file

I have created a simple proxy.pac file so that I can point this to my browser without having to always change these settings.
I have used IE8 to point to the file on my c drive in the following format:
Address is pointing to: file://c:/proxy.pac
which is the location of the file.

The problem is it snot working and Im wondering if there are any troubleshooting steps I can take to find out why.
I want to test this before deploying to the domain via GPO
thanks
0
Jamesm007
Asked:
Jamesm007
  • 4
  • 2
1 Solution
 
Jamesm007Author Commented:
this is what my proxy.pac file looks like:


function FindProxyForURL(url,host) {

if (
(isInNet(host,"10.xx.xx.0","255.255.255.0")) ||
(isInNet(host,"10.0.0.0","255.255.0.0")) ||
(isInNet(host,"192.168.10.0","255.255.255.0")) ||
(isInNet(host,"127.0.0.0","255.255.255.0"))
)
return "DIRECT";
else
return "PROXY proxy address.com.au:80; DIRECT"; }
0
 
Dave4125Commented:
I think there are three / after file: and you should check if the user has read access to the file.
0
 
Jamesm007Author Commented:
I am doing this locally on my laptop and I have tried with 3 and 4 /// but apparently IE has 2 - none will work 2,3 or 4 :(
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
Dave4125Commented:
Oh wait a second, I just noticed that it's a forward slash. Try this: file:///C:\proxy.pac
0
 
Jamesm007Author Commented:
just tried that, no luck unfortunately.
Is this supposed to work with IE8 on Win 7 the way I have set it up. I didnt think it would be so difficult.

thanks
0
 
Jamesm007Author Commented:
All good now - missed a / with all the mucking around.
thanks
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now