Forum Discussion
Matt_85761
Nimbostratus
Feb 13, 2012HTTP::respond on SSL virtual server
Hi all I'm a bit of an f5 veteran but this is my first post in devcentral... BIG-IP 10.0.1 Build 378.0 I have 2 virtual servers for the same host, one SSL th...
nitass
Employee
Feb 13, 2012this is mine. it is 10.2.3.
[root@ve1023:Active] config b virtual bar list
virtual bar {
destination 172.28.19.79:443
ip protocol 6
rules myrule
profiles {
clientssl {
clientside
}
http {}
tcp {}
}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/olduri1"} {
HTTP::respond 301 Location "https://newhost/newuri1"
}
if {[HTTP::uri] starts_with "/olduri2"} {
HTTP::respond 301 Location " https://newhost/newuri2"
}
}
}
[root@ve1023:Active] config curl -Ik https://oldhost/olduri1
HTTP/1.0 301 Moved Permanently
Location: https://newhost/newuri1
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
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
