Maintenance to ifile irule doesnt work
Hi Guys, I have a two sets of LTMs in datacenters (SEA and LHR). I need to setup a maintenance page in LHR datacenter to present a page when VIPs in SEA datacenters go down. I am pretty new to IRULEs but read through the guides for ifiles and irules and came up with a static way of setting the irule on a VIP: created a VIP on LHR LTMs created an a record for that VIP - x.x.x.x mapped to maintenance.x.com so that I can manually change a record to all domains I would like to point to ifile maint. page there... uploaded a simple htm file with maintenance note in to ifiles folder (through GUI so its in /common) named the ifile: maintenance_htm mapped the ifile to an ifile list in irule: maintance_htm created an irule (named maintenance_page) to catch all instances and subdomains of .x.com and redirect to my ifile: when HTTP_REQUEST { if { [HTTP::uri] contains ".x.com" } { HTTP::respond 200 content [ifile get maintance_htm ] }} added the IRULE to the maintenance.x.com VIP.... doesn't work... I spoke with support and was advised to add the path to the file itself:
HTTP:Respond 200 ifile "/Common/ifileURL"
but from what I understand if the file is already in /common you don't have to do it... when I add: HTTP:Respond 200 ifile "/Common/maintenance_htm" it through parser error at me anyway....
any advice how to troubleshoot this ?