Forum Discussion
TejasTh_307036
Nimbostratus
Jan 25, 2017I have the same requirement, if user try the URL with HTTPS, no change in URL. If user try to access with HTTP, should redirect to https, I am also using non-standard port URLS.
https://abc.com:8888 ==> no change
http://abc.com:8888 ==> redicet to https://abc.com:8888
1)I have created SSL Client profile with allowing Non-SSL Connections ( You need to modify default config)
2)I have created VIP with 8888 port and use SSL client profile
3)Configure below iRule
when HTTP_REQUEST {
if { [URI::protocol [HTTP::uri]] eq "http" } {
HTTP::redirect https://[getfield [HTTP::host] ":" 1]:[TCP::local_port][HTTP::uri]
}
}