gusf5_117081
May 16, 2013Nimbostratus
host rewrite newbi
simple change from https://test.irule.test.com/hello.html to https://preview.test.com/hello.html
also would like to to the following https://test.irule.test.com/***any uri *** https://preview.test.com/***any uri***
Will this do it?
when HTTP_REQUEST {
if { [HTTP::host] contains "test.irule.preview.test.com" } {
set HTTP::host "preview.test.com"
}
}
because I only get page cannot be displayed if I go to test.irule.test.com/test.html, I cannot see preview.test.com/test.html
Thanks