Forum Discussion
Steven_87308
Feb 10, 2012Nimbostratus
stuck on first complex irule - req for help
I'm writing to ask for help with the design of an irule solution. My goal is to get various URIs to either redirect to SSL during authentication, or to fail pass http through to a standard pool.
...
richard_77048
Feb 10, 2012Nimbostratus
Are data-groups a requirement? It seems like you could use something like this:
when HTTP_REQUEST {
set PATH [HTTP::path]
switch $PATH {
"/path1" { HTTP::redirect "https://hostname/path1" }
"/path2" { HTTP::redirect "https://hostname/path2" }
"/path3" { pool pool1 }
default { pool2 }
}
}
Unless the situation is more complex, I would think that would work.
Of note, in v10 I ran into a bug where you couldn't enter a record in a data-group with a leading slash (/). The workaround was to use the bigpipe shell which I don't believe is an option in v11. Just saying as there might be a bug causing your frustration. Maybe someone will be able to comment on that.
Hope that helps.
Richard
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