Forum Discussion
John_Klemm_4418
Nimbostratus
Nov 16, 2006http:// to https:// redirect not working
I am unable to get my redirect to work.
I have a single vip that supports 80 and 443 I have the redirect rule applied to port 80.
Basically my client wants to type in http://myhomepage.com and get redirected automatically to https://myhomepage.com.
when HTTP_REQUEST {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
6 Replies
Sort By
- hoolio
Cirrostratus
Is the VIP you have the redirect rule added to defined on port 80? - John_Klemm_4418
Nimbostratus
The vip .77 has 80 and 443 configured. Off of this vip I have 7 sites attached to it. For some reason I have tried the TCP local port irule and the general redirect rule. For some reason users are unable to just type http://myhomepage.com and get redirected to https://myhomepage.com. - hoolio
Cirrostratus
I believe you want to have requests to your VIP on x.y.z.77:80 redirected to a second VIP on x.y.z.77:443.when HTTP_REQUEST { HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] log local0. "client [IP::client_addr] redirected to: https://[getfield [HTTP::host] ":" 1][HTTP::uri]" }
- John_Klemm_4418
Nimbostratus
let me be more specific....the client want to type http:// into the url bar in IE and still get to HTTPS://. Would this require a stream profile or a simple redirect. I am getting lost in the sauce over here. - hoolio
Cirrostratus
Do you want the client to communicate with the VIP over HTTP but have the BIG-IP communicate with the nodes over HTTPS? - John_Comstock
Nimbostratus
Here is a simple http2https redirectwhen HTTP_REQUEST { HTTP::redirect https://[HTTP::host][HTTP::uri] }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects