End User Guide:
"Automatic Proxy Configuration" (PAC)
Short non-technical discussions: What is it? Why do people use it? What are common problems?
This article supplements the existing built-in help files.
Mozilla end users, blackbox testers, and system administrators.
This article assumes that the reader understands the purpose of proxy servers, and manual proxy configuration, as well as basic networking terms like URL, proxy server.
What is Automatic Proxy Configuration (PAC)?
Why do people use it?
PAC has two advantages over normal configurations:
- Network-based PAC files are centrally administered, and easy to update.
Network administrators usually share the PAC files via HTTP or FTP. If there are server changes or network outages, the PAC file can be changed, and your browser configuration will be automatically updated when the new PAC file is loaded.
- You can use complicated network environments with a single configuration.
PAC has support for load balancing and failover. These features can make your browsing experience faster or more reliable, and are not possible with a manual configuration. Your manual proxy configuration is prety complicated in comparison.
Mozilla is not the only browser that supports PAC (for example, IE and Safari do too), but there are some Mozilla-specific things you should know:
- Mozilla errors when I startup sometimes.
Sometimes, the first page I go to gives an error, after that it works fine.
The Mozilla version of PAC has a problem with the first request if your PAC server is slow. The workaround is to save the PAC file locally. Check w/ your network administrator to see if they regularly change the pac files (most do not).
- My PAC file makes Mozilla seem slow.
On rare occassions, users complain that browsing with a PAC file is slow. This can be caused by very large or complicated code in your PAC file. Have the network administrator look at the Technical Guide to PAC for more information.
- A proxy is a server, PAC is a file.
When you configure PAC, make sure you use a URL (like http://proxy/file.pac). You cannot use a hostname (proxy.domain or proxy:8080)
- Reloading updated PAC files.
PAC will reload anytime you change the URL or press the "reload" button in the Proxy Preferences. PAC will not reload if you change the proxy configuration type to PAC and the PAC file was previously loaded.
- PAC has a lot of uses which are not detailed here. If you want to learn more about PAC (usually to modify or create your own file) you can use a PAC file saved to your local disk (via a file: URL). See the technical guide to PAC for more information.