Forum Discussion
mwant29_130667
Nimbostratus
Jul 26, 2013HTTP to HTTPS redirect
I have been unable to get a HTTP redirect working. I have tried an iRule and also a HTTP Class Profile. I have 2 virtual servers on the same VIP, one on 80 and the other on 443. I have used Firefox t...
nitass
Employee
Jul 26, 2013I have used Firefox to look at the response and I see nothing coming back.can you try curl?
e.g.
[root@ve10:Active] config b virtual bar list
virtual bar {
snat automap
destination 172.28.19.252:80
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
[root@ve10:Active] config curl -I http://172.28.19.252/something
HTTP/1.0 302 Found
Location: https://172.28.19.252/something
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
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