Artica Wiki

A PAC file for each proxy-pac web service domain

Artica allows to provide a configuration script according to the domain received by the web service.

Back to proxy-pac service main section

The objective is to provide a configuration script against a rule depending on the URL used to retrieve the proxy.pac
This feature is available on Artica v4.30 Service Pack 927 or Artica v4.40

In the example above, each workstation has a different URL whose web service hostname is modified to match a specific rule

The "Requested Proxy or Web host" object 

To do this, the Requested Proxy or Web host object allows the web server to pay attention to the web host required by the client.
This filter tells the server that produces the proxy.pac to provide the script only on the specified rule.

This object is able to matches the current proxy hostname ,IP address or local web server hostname in regex method.
For example, if proxy is named proxy1.domain.tld, proxy1\. or domain\.tld or proxy1\.domain\.tld will return true.
Local ip address matches the same verification.

In our example, 

pac2\.domain\.tld will matches 

but also

pac2\.(.+?)\.tld will matches 

or 

pac2\.domain\.[a-z]+$ will matches 

With "Requested Proxy or Web host" , we can now provide 2 rules (2 PAC scripts ) according to the requested domain