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
i can see that you have clientssl and clientside ssl profiles, can you tell me what you specified?clientssl is used to decrypt https traffic. since we want to see http header, i.e. HTTP::host, and do redirection, so clientssl is required. clientside means it is configured on client-side i.e. between client and f5.
sol10167: Overview of the Client SSL profile
http://support.f5.com/kb/en-us/solutions/public/10000/100/sol10167
under clientside do i need to specify non-ssl connections?no. i do not think you need non-ssl.
my client is adamant that they do not want users being notified regarding a cert by the browser. do I need a cert for the 443 VS for this to work?yes, you have to import certificate and private of xxx.b.com and set them in clientssl profile.
as i am having issues redirecting http://xxx.b.com/test to http://aaa.b.com/test.each i.e. xxx.b.com and aaa.b.com, is different in ip and has own virtual server, hasn't it?
can you try this on xxx.b.com virtual server?
[root@ve1023:Active] config b virtual bar list
virtual bar {
destination 172.28.19.79:80
ip protocol 6
rules myrule
profiles {
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 -I http://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