Forum Discussion
mart_58302
Nimbostratus
Aug 15, 2008Serving wpad.dat with F5?
Hello.
Maybe wrong area, but I'm trying to find out, is it possible to use F5 himself as web server, to serve text based file like wpad.dat or cache.pac for clients?
How ...
mart_58302
Nimbostratus
Oct 20, 2008
So do you want to only send the HTTP content for requests with specific Host header values and/or URIs? If you have a list of hosts and/or URIs, you can either use a datagroup and matchclass command (Click here) or a switch statement (Click here) to check the request. The example you quoted uses a switch statement to check the URI.
Give one of those options a try and reply if you get stuck.
Hmm, actually same rule, just again, due historical reason, the wpad.internal host have also few CNAME records in our DNS, so all same iRule, but just request will come also with different hostname, like http://cache.internal/wpad.dat, http://wpad.internal/wpad.dat or http://cache.internal/wpad.dat, http://cache.internal/cache.pac.
So do I need matchclass or switch statement at all?
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
