Forum Discussion
Simon_83666
Nimbostratus
Dec 17, 2008firefox host name with port number when 303
Hi,
I've written the following to direct traffic depending on the host name. This seem to work fine except for when the http response was a 303 and the browser is Firefox in which case ...
Simon_83666
Nimbostratus
Dec 17, 2008Hi ,
Thanks for the tips, I found the following would also work by adding the * character to the pattern. Would this be a better approach or potential risk for later ?
when HTTP_REQUEST {
set http_host [HTTP::host]
switch -glob $http_host {
123.com* { pool x member node_1 80 }
456.com* { pool y member node_2 80 }
default { HTTP::respond 200 content "ErrorError detected (F5) " }
}
}
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