Forum Discussion
skarpovi_111573
Nimbostratus
Mar 25, 2008Redirect based on the source IP
Folks, can anyone help.
i need something like this:
when HTTP_REQUEST {
if { [TCP::local_port] eq "80" } """ and source IP = 10.x.x.x"""" then redirect to
{
...
skarpovi_111573
Nimbostratus
Mar 25, 2008here is the error i'm getting
01070151:3: Rule [rule1] error:
line 4: [parse error: extra characters after close-brace] [else if {[TCP::local_port] eq "80" } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]BBB-link"
}else {
pool Servers-Pool
}
]
line 6: [undefined procedure: }else] [}else {
pool Servers-Pool
}]
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