Zero logo

Deploying PAC file

Deploying the Uniform Server proxy.pac file is straightforward. The steps on this page show how to manually configure the most popular browsers by their proxy settings. First we take a look at how to configure Apache to serve the PAC file.

Apache Web Server

Before covering PAC file deployment the following shows how to configure Apache to serve the proxy.pac file:

PAC file location:

The proxy.pac file is located in folder UniServerZ\home\us_pac. This folder has been mapped into Apache'sconfiguration file UniServerZ\core\apache2\conf\httpd.conf as shown on the right.

Note: One of the following URL's is used to load the PAC file:

  • http://127.0.0.1/us_pac/proxy.pac - All browsers
  • file:///C:/UniServerZ/home/us_pac/proxy.pac - Pale Moon, FF
  • file://C:/UniServerZ/home/us_pac/proxy.pac - IE, Opera
Apache httpd.conf
Alias /us_pac  "${US_ROOTF}/home/us_pac/"

#== PAC - Location to serve proxy.pac
<Directory "${US_ROOTF}/home/us_pac/">
  Options Indexes Includes
  AllowOverride All
  Require all granted
</Directory>

# PAC files e.g proxy.pac
AddType application/x-ns-proxy-autoconfig .pac

Portable Pale Moon browser

The core component of the Uniform Server Zero module (Zero_palemoon_20_3) is the portable Pale Moon browser.
The Pale Moon browser is an optimised version of the Firefox browser.

Information:

Uniform Server Zero module (Portable Pale Moon) has been pre-configured to use the proxy.pac file.

The following entries in UniServerZ\core\palemoon\User.ini enable loading of proxy.pac as a file:

User.ini:
; ========================================
; 		** User preferences **
; ========================================

;(US- Enable proxy to use PAC file)
network.proxy.type=2

;(US- Set PAC file either url or path defined by environment variable US_PAC )
network.proxy.autoconfig_url=%US_PAC%|"/

Firefox

  1. Open Firefox.
  2. Select Tools from the application menu, click Options.
  3. Click the Advanced section, click Settings under Connection.
  4. Select Automatic proxy configuration URL.
  5. Enter the URL for the PAC file in the text box, click OK.

Pale Moon

Pale Moon is an optimised version of the Firefox browser. Hence follow the instructions for Firefox.

Internet Explorer

  1. Open Internet Explorer.
  2. Select Tools from the application menu, click Internet Options.
  3. Click the Connections tab, click the LAN settings button.
  4. Check Use automatic configuration script, click OK.
  5. Enter the URL for the PAC file in the Address text box, click OK.

Safari

Safari utilizes the Windows proxy settings as used in Internet Explorer. Hence follow the instructions for Internet Explorer.

Google Chrome

Like Safari, Chrome utilizes the Windows proxy settings as used in Internet Explorer. Hence follow the instructions for Internet Explorer.

Opera

  1. Open Opera.
  2. Click the Opera button.
  3. Click Settings > Preferencessection.
  4. Click Advanced, select Network, and click Proxy Servers.
  5. Select Use automatic proxy configuration.
  6. Enter the URL for the PAC file in the text box, click OK.

--oOo--