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's configuration 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 - Edge, 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 ZeroXV_palemoon_x_x_x.exe is the portable Pale Moon browser.
The Pale Moon browser is an optimized 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 General tab on the left and under Network Proxy, click Settings.
  4. Check Manual proxy configuration.
  5. Enter the URL for the PAC file in the HTTP Proxy box.
  6. Check the Use this proxy server for all server protocols box, click OK.

Pale Moon

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

Microsoft Edge

  1. Open the Settings app (Windows + I keys).
  2. Click on Network & Internet.
  3. Click on Proxy.
  4. In the Automatic Proxy Setup section, next to Use Setup Script, click Edit.
  5. Set the Use Setup Script switch to On.
  6. Enter the URL for the PAC file in the Script Address text box, click Save.
  7. Close Settings.

Safari

Safari utilizes the Windows proxy settings as used in Microsoft Edge. Hence, follow the instructions for Microsoft Edge.

Google Chrome

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

Opera

  1. Open Opera.
  2. Click the Opera button.
  3. Click Settings.
  4. Click Advanced, select Browser and click Open your computer's proxy settings.
  5. In the Automatic Proxy Setup section, next to Use Setup Script, click Edit.
  6. Set the Use Setup Script switch to On.
  7. Enter the URL for the PAC file in the Script Address text box, click Save.
  8. Close Settings.

--oOo--