Cisco Cisco Web Security Appliance S660 Guida Utente

Pagina di 784
 
5-21
Cisco IronPort AsyncOS 7.0 for Web User Guide
OL-23079-01
Chapter 5      Web Proxy Services
Working with PAC Files
PAC File Format
The PAC file must include at least one JavaScript function, 
FindProxyForURL(url, host). The JavaScript function determines the appropriate 
proxy to use for each URL. 
For example, if the Web Security appliance hostname is WSA.example.com, you 
could create a PAC file that includes the following text: 
function FindProxyForURL(url, host) { return “PROXY 
WSA.example.com:3128; DIRECT”; }
Note
The port you specify in the FindProxyForURL() function should be a proxy port 
for the Web Security appliance configured on the Security Services > Web Proxy 
page.
However, you can make PAC files more complex. For example, you can create a 
PAC file that instructs the browser to connect directly to the website under certain 
conditions, such as matching on a particular hostname or IP address, and to use 
the proxy server in all other cases. You can create a PAC file that instructs 
applications to go directly to the website for servers on your intranet.
For more information about creating and using PAC files, see the following 
locations:
  •
http://en.wikipedia.org/wiki/Proxy_auto-config
  •
http://www.mozilla.org/catalog/end-user/customizing/enduserPAC.html
  •
http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
Note
Common convention is to use the .pac file extension for PAC file names.