Forum Discussion
heskez_36146
Nimbostratus
Nov 28, 2013favicon troubles keeps resulting in http 302 redirect
Hi,
We've problems with a website which always asks for the favicon.ico. When it's not to be found the bigip always sends back a 302 redirect and then the session times out.
We tried to contro...
heskez_36146
Nimbostratus
Nov 29, 2013Hi, webacceleration profile isn't used.
This is the irule which is causing the problem:
when HTTP_REQUEST
{
set RequestedPath [string tolower [HTTP::path]]
switch $RequestedPath
{
"/"
{
HTTP::redirect "https://x/north/"
}
"/north"
{
HTTP::redirect "https://x/north/"
}
"/south"
{
HTTP::redirect "https://x/south/"
}
"/north/"
{
HTTP::redirect "https://x/north/"
}
"/south/"
{
HTTP::redirect "https://x/south/"
}
default
{
if { !($RequestedPath starts_with "/n") }
{
HTTP::redirect "https://x/north/"
}
}
}
if { $RequestedPath contains "/north" }
{
if {[active_members Pool_x-north] > 0 }
{
pool Pool_x-north
}
else
{
if {[active_members Pool_www.y.nl] > 0 }
{
HTTP::redirect "http://www.y.nl/error/"
TCP::close
}
}
}
elseif { $RequestedPath contains "/south" }
{
if {[active_members Pool_x-south] > 0 }
{
pool Pool_x-south
}
else
{
if {[active_members Pool_www.y.nl] > 0 }
{
HTTP::redirect "http://www.y.nl/error/"
TCP::close
}
}
}
}
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