Bob_66655
Sep 20, 2018Nimbostratus
Irule rewrite
Trying to set this for dev request.
VS has 3 names https://abc.com/ https://def.com/ https://xyz.com/
When user enters https://abc.com/* or https://def.com/* It would proxy over to https://xyz.com/test/index.html but the original web address remain in the their browser
Im trying
when HTTP_REQUEST {
if { [HTTP::host] contains "abc.com"}
{
HTTP::header replace Host https://xyz.com
HTTP::uri "/test/index.html"}
}
if { [HTTP::host] contains "def.com"}
{
HTTP::header replace Host https://xyz.com
HTTP::uri "/test/index.html"}
}
But the browser report a 400 bad request error