Forum Discussion
Pav_70755
Sep 08, 2010Nimbostratus
SQL DNS RE-Direction
Hi Guys,
I basically have 3 SQL servers and a group of 6 web servers. SQL Servers
SQL-Live
SQL-UAT
SQL-Wip
Web Servers
UAT
Wip
web1
web2...
Cspillane_18296
Sep 15, 2010Nimbostratus
Hello again Pav.
You have some issues with braces and an extra 'else' in there. Try this instead:
when CLIENT_ACCEPTED {
if { [matchclass [IP::remote_addr] equals $::Wip_Server] } {
pool SQL-Wip
} elseif { [matchclass [IP::remote_addr] equals $::UAT_Server] } {
pool SQL-UAT
} elseif { [matchclass [IP::remote_addr] equals $::Live_Servers] } {
pool SQL-Live
}
}
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