Julian_Grunnell
Apr 26, 2007Nimbostratus
iRule for adding a Header
Hi - I have an LTM that does client side SSL for a secure website. The website behind the LTM is also available on port 80. Some of the pages must only be avaiable via HTTPS, but at present you can get to them all via HTTP as well.
As this is a customers website at present I don't if this is 1 file or a hundred files. The iRule below I've used in the past to make sure a single redirect works.
when HTTP_REQUEST {
if { [HTTP::uri] == "/content/contact/contactus.aspx" }{
HTTP::redirect "https://[HTTP::host]/content/contact/contactus.aspx"
}
}
Can anyone provide an iRule that would work for multiple pages? Or suggest a way to maybe insert a Header for the HTTPS requests that the webserver can then read?
Thanks - Julian.