Forum Discussion
Gustavo_Lazarte
Nimbostratus
Jul 21, 2008Modifying Header Location
We are having problems passing a security audit because IIS 5 shows the name of the servers when it does a redirection on the location part of the header. The problems is when we hit a redirect (302 O...
Nicolas_Menant
Employee
Jul 22, 2008Hi,
Should looks like this (i didn't tested the syntax):
when HTTP_RESPONSE {
if { [HTTP::status] contains "302"} {
switch [string tolower [HTTP::header Location]] {
"server01" {
HTTP::header replace Location [string map -nocase {"server01" "www.site.com"} [HTTP::header Location]] }
"server02" {
HTTP::header replace Location [string map -nocase {"server02" "www.site.com"} [HTTP::header Location]]}
"server03" {
HTTP::header replace Location [string map -nocase {"server03" "www.site.com"} [HTTP::header Location]] }
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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