Forum Discussion
jkeyser_44143
Nimbostratus
Aug 12, 2009Help with irule to re-write http to https and keep uri
I have a virtual server listening on 443 and using ssl. The pool that this points to uses http over port 8080. When a user hits the LTM virtual server they get redirected by the nodes in the pool to h...
dennypayne
Employee
Aug 12, 2009That rule does not preserve the URI so every request would be redirected to just the domain name.
You probably just need to enable Rewrite Redirects in the http profile, or you can also use a stream profile to change all the http:// strings in the response to https://.
But you could also use:
when HTTP_REQUEST {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
on a port 80 vip so anything coming in as 80 would be redirected to https.
Denny
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
