Forum Discussion
vani_257547
Apr 05, 2016Nimbostratus
irule editor
I need Irule to redirect as below
when HTTP_REQUEST {
if { [HTTP::host] contains "visitor-stg.cummins.com" } {
HTTP::redirect "https://loginstage.cummins.com/oamfed/idp/initiatesso?providerid=V...
CharlesCS
Apr 05, 2016Cirrus
I think you're missing a closing brace.
when HTTP_REQUEST {
if { [HTTP::host] contains "visitor-stg.cummins.com" } {
HTTP::redirect "https://loginstage.cummins.com/oamfed/idp/initiatesso?providerid=Visitor"
} elseif { [HTTP::uri] starts_with "/visitor.cummins.com" } {
pool visitor-stg
}
}
This parses correctly.
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