Forum Discussion
d_n_26439
Jan 14, 2012Nimbostratus
https and http to http http::path redirection not working
so i am new to f5, spent the last week reading irules stuff and the devcentral irules forums. i think i got my script partially right, but its not redirecting. so i got one http VS on port 80. le...
nitass
Jan 14, 2012Employee
if a user went to https://xxx.b.com/test, nothing happened no logging user gets page cannot be displayed. i think i may be missing something, do i need to setup a separate vs on https 443?yes since even xxx.b.com is resolved to aaa.b.com but user is still accessing https (443).
e.g.
[root@ve1023:Active] config b virtual aaa.b.com.80 list
virtual aaa.b.com.80 {
snat automap
pool foo
destination 172.28.19.79:80
ip protocol 6
profiles {
http {}
tcp {}
}
}
[root@ve1023:Active] config b virtual aaa.b.com.443 list
virtual aaa.b.com.443 {
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 {[string tolower [HTTP::host]] equals "xxx.b.com"} {
HTTP::redirect "http://aaa.b.com[HTTP::uri]"
}
}
}
[root@ve1023:Active] config curl -Ik https://xxx.b.com/test
HTTP/1.0 302 Found
Location: http://aaa.b.com/test
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