Forum Discussion
iRule cannot fetch iFile (wpad.dat)
Just guessing, Suspecting issue with external data source
hxxp://x.x.x.x/MDD/wpad.dat.
In this case iRule iFile is searching details inside F5 directory
/config/filestore/files_d/Common_d/ifile_d
Can you import wpad.dat file in F5 and run @AMG's iRule.
System > File Management--> iFile List --> Import
Hope will work...
Cheers...
Should be no issue with the iFile as simply plain text.
Is the iFile and the Virtual Server you are assigning the iRule to in the same partition, i.e. both in partition named 'MDD'?
If you try the following, removing the partition reference:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP:uri]] {
"/mdd/wpad.dat" {
HTTP::respond 200 contain [ifile get wpad.dat] "Content-Type" "application/x-ns-proxy-autoconfig" "pragma" "no-cache"
}
default {
HTTP::respond 404 content "You've asked for something we don't have."
}
}
}
Failing this can you run the folllowing and share the output:
tmsh list sys file ifile /MDD/wpad.dat
tmsh list ltm ifile /MDD/wpad.dat
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
