Forum Discussion
nitass
Mar 13, 2013Employee
1
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if { [HTTP::host] equals "www.foo.com.au" and [HTTP::path] starts_with "/Login/Something" } {
HTTP::redirect "]"
}
}
}
[root@ve10:Active] config curl -Ik https://www.foo.com.au/Login/Something/sweet
HTTP/1.0 302 Found
Location: https://as.abc.com.au/Login/Something/sweet
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
2
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if { [HTTP::host] equals "as.abc.com.au" and [HTTP::path] starts_with "/Login/Something" } {
HTTP::respond 302 Location "https://www.foo.com.au/TheApplcation" "Set-Cookie" "setRequestAuthContxt=SOMEKEY; path=/; domain=.abc.com.au"
}
}
}
[root@ve10:Active] config curl -Ik https://as.abc.com.au/Login/Something/sweet
HTTP/1.0 302 Found
Location: https://www.foo.com.au/TheApplcation
Set-Cookie: setRequestAuthContxt=SOMEKEY; path=/; domain=.abc.com.au
Server: BigIP
Connection: Keep-Alive
Content-Length: 0