Forum Discussion
bertrand_9354
Nimbostratus
14 years agorewriting location header from server
Hi everybody, I have an application on which my client connect to F5 on https and the F5 decrypt to server. The problem is my server (in response) is sending to F5 for each request an301 re...
nitass
Employee
14 years agoe.g.
[root@ve1023:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.79:443
ip protocol 6
profiles {
clientssl {
clientside
}
http {}
tcp {}
}
}
[root@ve1023:Active] config b pool foo list
pool foo {
members 200.200.200.101:80 {}
}
[root@ve1023:Active] config curl -Ik https://toto.net/
HTTP/1.1 302 Found
Date: Mon, 30 Jan 2012 14:56:58 GMT
Server: Apache/2.2.3 (CentOS)
Location: http://toto/index.htm
Content-Type: text/html; charset=iso-8859-1
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_RESPONSE {
if {[HTTP::is_redirect]}{
HTTP::header replace Location [string map {"http://toto" "https://toto.net"} [HTTP::header Location]]
}
}
}
[root@ve1023:Active] config b virtual bar rule myrule
[root@ve1023:Active] config curl -Ik https://toto.net/
HTTP/1.1 302 Found
Date: Mon, 30 Jan 2012 14:57:15 GMT
Server: Apache/2.2.3 (CentOS)
Location: https://toto.net/index.htm
Content-Type: text/html; charset=iso-8859-1
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