Forum Discussion
Shawn_Puckett_8
Nimbostratus
Jan 26, 2006IP blocking and URI Redirect
We need two rules to be validated before a user is sent to a pool, first we need to make sure they are coming from an allowed IP, then we need to see if they want to go to a specific server via the UR...
Shawn_Puckett_8
Nimbostratus
Jan 26, 2006OK, well I've setup the class but when I try to save the rule I get this error:
line 3: [missing a script after "if"] [ ]
line 4: [undefined procedure:
if { [HTTP::uri] contains "qatest01" }
{use pool QATest01-Port80}
elseif { [HTTP::uri] contains "qatest02" }
{use pool QATest02-Port80}
else
{use pool QATest01-02-Port80}
] [{
if { [HTTP::uri] contains "qatest01" }
{use pool QATest01-Port80}
elseif { [HTTP::uri] contains "qatest02" }
{use pool QATest02-Port80}
else
{use pool QATest01-02-Port80}
} ]
line 12: [undefined procedure: else] [else { reject }]
Shawn
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