Why can't we rewrite PAC or WPAD to self HTTP proxy service port?


<< Back to Knowledge Search

Solution

Overview

We can’t rewrite PAC or WPAD back to own HTTP explicit proxy service port (usually port 80 or port 8080) because of loopback detection. The proxy will return with "400 bad request" error message. Such rewrite was never been supported or intended to be. The workaround is to use redirect instead of rewrite or rewrite the PAC or WPAD to another ProxySG's http service ports.


A basic example of a redirect policy for WPAD can be found below:


;------start redirect WPAD to PAC------

<proxy>
  url.path=/wpad.dat action.redirect_pac(yes) allow

define action redirect_pac
  redirect(302,"(.*)","http://192.168.1.2:8080/accelerated_pac_base.pac")
end
;------end redirect WPAD to PAC------

Cause
Resolution
Workaround
Additional Information
Bug Number
InQuira Doc IdFAQ410
Attachment

Article Feedback

Hide Properties
First Published      10/01/2014
Last Modified      10/01/2014
Last Published      10/01/2014
Article Audience
Product      ProxySG
Software      SGOS 4, SGOS 5
Topic      Installation / Configuration
Article Number      000016162
Summary     
Was this helpful?
Comments:
 
Previous MonthNext Month
SunMonTueWedThuFriSat