Forum Discussion
IgorS_141493
Nimbostratus
Aug 09, 2018iRule for matching host & multiple uri's and close connection on the rest.
Hi, I've a got a question related to setting up a reverse proxy iRule with multiple sites and have to filter also on certain uri's. we also offloading our ssl traffic at this moment. the reve...
Yann_Desmarest
Cirrus
Aug 10, 2018Hi,
Code 1 has some missing parts :
if { [string tolower [HTTP::host]] contains "newsite.domain.com" and [HTTP::uri] starts_with "/css" } {
SSL::disable serverside
pool pool_poolxyz
return
}
if { [string tolower [HTTP::host]] contains "newsite.domain.com" } {
if { [HTTP::uri] starts_with "/ps" } {
if { [HTTP::uri] contains "/xyz/abc/123/y/" } {
SSL::disable serverside
pool pool_poolxyz
return
} else {
HTTP::respond 404 content "Not Found" noserver "Connection" "close"
return
}
}
}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