Forum Discussion
AdamFoot_1451
Nimbostratus
May 16, 2008Cookie and URI Decisions
Hi all,
Could someone just check this over for me please.The goal is to add some
persistence based on version cookie,so we can direct version specific traffic to specific pools.
...
AdamFoot_1451
Nimbostratus
May 20, 2008Hi ,still working this through. Made it more efficient and removed the cookie checks but I'm now getting a syntax error and can't work out where the problem is.
Error: May 20 12:44:54 tmm tmm[10850]: 01220001:3: TCL error: Rule AF_Attach - invalid command name "" while executing "[snatpool SNAT_10.10.10.10] and [pool AVG1] "
iRule
------
when HTTP_REQUEST {
Extract the URI
set url [HTTP::host][HTTP::uri]
set vip [IP::local_addr]:[TCP::local_port]
set my_uri [string tolower [HTTP::uri]]
log local0.info "URL is $url VIP is $vip URI is $my_uri "
If Attachment URI exists
if {$my_uri contains "/attachmentshare/upload.aspx"}
{
[snatpool SNAT_10.10.10.10] and [pool AVG1]
log local0. "sending user to attachment pool AVG1 SNAT_20.146.203.122"
} else {
log local0.info "sending user to default pool [LB::server pool] "
pool [LB::server pool]
}
log local0.info "URL is $url VIP is $vip URI is $my_uri "
}
Can someone please take a look.
Thanks,
Adam
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
