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...
Gustavo_Lazarte
Nimbostratus
Jul 22, 2008Here is an example
when HTTP_RESPONSE {
if { [HTTP::status] contains "302"} && [string tolower [HTTP::header Location]]contains "server01" }
then {HTTP::header replace Location [string map -nocase {"server01" "www.site.com"} [HTTP::header Location]] }
elseif { [HTTP::status] contains "302" && [string tolower [HTTP::header Location]]contains "server02" }
then {HTTP::header replace Location [string map -nocase {"server02" "www.site.com"} [HTTP::header Location]] }
elseif { [HTTP::status] contains "302" && [string tolower [HTTP::header Location]]contains "server03" }
then {HTTP::header replace Location [string map -nocase {"server03" "www.site.com"} [HTTP::header Location]] }
again thanks for your help
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