Forum Discussion
2 Replies
Sort By
- Thanushka_Wije1Nimbostratus
will 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_BowmanCirrus
You 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"] } }