two HTTP::redirect will be triggered when HTTP::host matches condition in demo_redirect rule.
you should add condition in redirect_http2https rule and make sure traffic won't match condition in demo_redirect rule at the same time.
[root@ve1023:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.79:80
ip protocol 6
rules {
demo_redirect
redirect_http2https
}
profiles {
http {}
tcp {}
}
}
[root@ve1023:Active] config curl -I http://demo.ssig/
HTTP/1.0 302 Found
Location: https://xxxx.com/
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
[root@ve1023:Active] config cat /var/log/ltm
Feb 3 05:55:45 local/tmm err tmm[4369]: 01220001:3: TCL error: redirect_http2https - Operation not supported. Multiple redirect/respond invocations not allowed (line 1) invoked from within "HTTP::redirect https://[HTTP::host][HTTP::uri]"