Forum Discussion
MrGlass_204919
Nimbostratus
Sep 12, 2017irule not working
Hi folks,
Can someone look at this irule and tell me why its not working and how it should be formatted.
when HTTP_REQUEST {
log local0. "Request: [HTTP::URI]" {
Path beg...
MvdG
Cirrus
Sep 12, 2017Hi,
You use HTTP::URI and not HTTP::uri. And the entry "/zak/por.html should be "/zak/por.html"
Try this one:
when HTTP_REQUEST {
log local0. "Request: [HTTP::uri]"
Path begins with "/zak/por.*html"
Dyn Webseal{
if { [HTTP::path] starts_with "/zak/por.*html" } {
Stat content to SCS DMZ
Disable serverside SSL
Change host header to zp-cli-exp.d.n
pool EXP_zak.d.n-static-pool_HTTP
persist none
SSL::disable serverside
if { [HTTP::host] equals "zak.d.n"} {
if {[HTTP::uri] contains "zak/por/"} {
HTTP::header replace "Host" "zp-cli-exp.d.n"
log local0. "Rewrite zak por"
} else {
Dyn Content to Webseal
pool EXP_zak.d.n-https_pool
log local0. "Default"
}
}
}
}
}
Regards, Martijn
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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