Forum Discussion
darrenclegg_199
Nimbostratus
Oct 06, 2011HTTPS repond
I have the following irule set up for our websites and it is working fine for HTTP but when the user tries the HTTPS site they just get Internet explorer cannot display the web page
when HTT...
Ibrahem_Nserat_
Nimbostratus
Jul 16, 2017hi everyone ,
this is example for http redirect with respond 302 custom header :
example
`text`
when HTTP_REQUEST {
if { [LB::server addr] eq "" }{
eval [LB::select]
}
switch [LB::server addr] {
"IP1" {
HTTP::respond 302 Location "[https://a.x.domain.com](https://a.x.domain.com)[HTTP::uri]" \
Access-Control-Allow-Origin "*"
}
"IP2" {
HTTP::respond 302 Location "[https://b.x.domain.com](https://b.x.domain.com)[HTTP::uri]" \
Access-Control-Allow-Origin "*"
}
"IP3" {
HTTP::respond 302 Location "[https://c.x.domain.com](https://c.x.domain.com)[HTTP::uri]" \
Access-Control-Allow-Origin "*"
}
"IP4" {
HTTP::respond 302 Location "[https://d.x.domain.com](https://d.x.domain.com)[HTTP::uri]" \
Access-Control-Allow-Origin "*"
}
}
}
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