Hi,
I am trying to set up an irule maintenance page using ifiles but am having difficulty getting the images to work. I need to have different pages for different domains e.g
when LB_FAILED { if { [string tolower [HTTP::host]] contains “tesdomain1.ie” } { HTTP::respond 200 content [ifile get cz-index.html] } elseif { ( [string tolower [HTTP::host]] contains “testdoamin2.ie” ) } { HTTP::respond 200 content [ifile get at-ie-index.html] } } This works but the images referenced in the html and created as ifiles are not seen. Have played around with the irule but no joy
If I use the following irule for all domains it works, but I need to show different, so not quite sure how to proceed?
when HTTP_REQUEST { if {[active_members [LB::server pool]] < 1} { switch [HTTP::uri] { “/” { HTTP::respond 200 content [ifile get “at-test-index.html”] } “/at-caravans-logo.png” { HTTP::respond 200 content [ifile get “at-test-logo.png”] } } } }