Forum Discussion
PAC File iRule - advanced strings
Hi,
I have implemented the below KB (iRule hosting a PAC file for proxy redundancy); and all seems to be working fine.
This may be more a general PAC file question, but can anyone offer some advise on how i can incorporate some more advanced strings into the iRule/PAC file. Im looking to test access to a webpage, say bbc.co.uk, if response is successful, use proxy A, and if response is unsuccessful use proxy B.
https://devcentral.f5.com/wiki/irules.Proxy_Pacfile_Hosting_without_need_for_Web_servers.ashx
My web proxies and F5 are in different VLANs, hence why i am only able to host the PAC on F5, and not fully LB.
Thanks :)
2 Replies
could you make cleared what you exactly want, i dont understand the "if reponse is succesful"
in principle the proxy pac does part of what you want, you can say for dns zone x.com use proxy A and for dns zone y.com use proxy B. the example is in the page you have shown.
if you want to deliver different proxy pac files for different requests that might be more tricky. i believe (but please double check) you only request the proxy pac once when you start the browser. if you do another request it wont request another proxy pac file.
anyway please explain with more detail what you request is.
- superd_88943
Nimbostratus
Thanks for your response here and apologies for the slow acknowledgment. This iRule never got off the ground in the end.
Thanks
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com