Forum Discussion
nitass
Mar 22, 2013Employee
e.g.
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if { [HTTP::host] eq "xservices.abc.com" and \
[HTTP::uri] eq "/security/authentication/login/session/host" and \
[HTTP::header exists Authorization] and \
[HTTP::header exists Version] } {
HTTP::redirect "https://[HTTP::host]/[HTTP::header Version][HTTP::uri]"
}
}
}
[root@ve10:Active] config curl -I http://172.28.19.252/security/authentication/login/session/host -H "Host: xservices.abc.com" -H "Authorization: 550c2dbe-d3cc-47cf-84ba-b458869799ca" -H "Version: 2.0"
HTTP/1.0 302 Found
Location: https://xservices.abc.com/2.0/security/authentication/login/session/host
Server: BigIP
Connection: Keep-Alive
Content-Length: 0