Forum Discussion
N_67263
Nimbostratus
Jan 22, 2014Help regarding an iRule
Folks.
I am looking at an iRule that would help accept an http request on port 8080 on the VIP and then forward the request on https port 8080 to the back end servers.
any help?
regards,
Ni...
nitass
Employee
Jan 22, 2014the requirement says that we need the incomming requests to come on port 8080(http) and then redirect these to https.
the https is on port 443, isn't it? so, you will create new https virtual server, won't you?
e.g.
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.24.10:8080
ip-protocol tcp
mask 255.255.255.255
profiles {
http { }
tcp { }
}
rules {
_sys_https_redirect
}
source 0.0.0.0/0
vs-index 7
}
[root@ve11a:Active:In Sync] ~ curl -I http://172.28.24.10:8080/something
HTTP/1.0 302 Found
Location: https://172.28.24.10/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