Forum Discussion
cjunior
Oct 06, 2014Nacreous
Maybe you can do like that:
when HTTP_REQUEST {
set path [string tolower [lindex [split [HTTP::path] "/"] 1]]
switch -glob $path {
"dev" { pool pool-dev }
"ct" { pool pool-ct }
"uat" { pool pool-uat }
default {
HTTP::respond 200 content "Content-Type "text/html" Connection Close"
}
}
}
You can get an iFile or base64 variable content to present the html too. Find some examples in this channel.
Regards.