Forum Discussion
Thanushka_Wije1
Nimbostratus
Feb 22, 2018Apply splash page for single url on multiple url hosted virtual server
Hi All
I want to write a iRule including ifiles to accommodate below scenario
site 1:-
site 2:-
resolves single public IP address :- 123.1.1.5
when user tries to access splash...
Thanushka_Wije1
Nimbostratus
Feb 23, 2018will below method work ?
when HTTP_REQUEST { set host [string tolower [HTTP::host]] set requiredHost1 "; set requiredHost2 ";
if {$host == $requiredHost1} {HTTP::respond 200 content [ifile get "abc-holding_page"]}
elseif {{$host == $requiredHost2}{ pool efg-pool }
}
}
Dan_Bowman
Cirrus
Feb 23, 2018You could probably simplify that a little assuming your pool is assigned to your VS. Also no need to assign variable if you're only using it once.
when HTTP_REQUEST {
set host [string tolower [HTTP::host]]
if {$host eq "www.abc.com"} {
HTTP::respond 200 content [ifile get "abc-holding_page"]
}
}
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