How to Rewrite the accelerated pac file to a user-defined name

book

Article ID: 166485

calendar_today

Updated On:

Products

ProxySG Software - SGOS

Issue/Introduction

Renaming the accelerated pac file from the default to a user-defined name

Renaming the accelerated PAC file

You want to rename the accelerated pac file from the default to a user-defined name

Rewriting the accelerated PAC file

Resolution

You can accomplish this with a rewrite rule.

You want to be able to use http://proxy.company.com/pacfile as the location for the PAC file you can make a rewrite by using and modifying the CPL below.

Where 1.2.3.4 is the ip address of your proxy, and http://proxy.company.com/pacfile is the url you want to point to.

<proxy>
url="http://proxy.company.com/pacfile" action.rewrite_pac(yes) 

define action rewrite_pac
   rewrite(url,"(.*)","http://1.2.3.4:8080/accelerated_pac_base.pac")
end

; Note: If you are using a non-standard HTTP service on the proxy, use that in the above policy instead of 8080.