Forum Discussion
richard_77048
Nimbostratus
Jun 06, 2011cookie not getting set using HTTP::cookie
Greetings, I have a rule that is setting a cookie in an HTTP_REQUEST event before handing the request to the server. This is working on my development unit but the cookie fails to set on my...
[root@edelweiss:Active] config b node 10.10.70.110 list
node 10.10.70.110 {}
[root@edelweiss:Active] config b node 10.10.70.110
NODE 10.10.70.110 unchecked session user enabled
| (cur, max, limit, tot) = (0, 1, 0, 16)
| (pkts,bits) in = (73, 57304), out = (71, 110712)
| requests (total) = 8
[root@edelweiss:Active] config b node 10.10.70.110 monitor icmp
[root@edelweiss:Active] config b node 10.10.70.110 list
node 10.10.70.110 {
monitor icmp
}
[root@edelweiss:Active] config b node 10.10.70.110
NODE 10.10.70.110 up session mon enabled
| (cur, max, limit, tot) = (0, 1, 0, 16)
| (pkts,bits) in = (73, 57304), out = (71, 110712)
| requests (total) = 8
- IheartF5_45022Nov 05, 2013
Nacreous
A bit more information would be useful, but is this what you are after?
if {[string toupper [HTTP::method]] eq "CONNECT"} { pool }
- adamp_1459Nov 05, 2013
Nimbostratus
i have my default web proxy pool but when a user tries to open for example google.com go to another pool that is a diffren web proxy - IheartF5_45022Nov 05, 2013
Nacreous
Try;-
if {[string toupper [HTTP::method]] eq "CONNECT" && [HTTP::host] starts_with "google.com"} { pool }
- adamp_1459Nov 10, 2013
Nimbostratus
ill try thanks - adamp_1459Nov 12, 2013
Nimbostratus
hmm does not compile i was able to change it so but it does not redirect when HTTP_REQUEST { if { [string toupper [HTTP::method]] eq "CONNECT" && [HTTP::host] starts_with "google.com" } { pool second-webporxy } } any ideas? - IheartF5_45022Nov 12, 2013
Nacreous
For testing, put in a few logging statements;
log local0. [HTTP::request] if { [string toupper [HTTP::method]] eq "CONNECT" && [HTTP::host] starts_with "google.com"} { pool second-webproxy log local0. "Selecting pool second-webproxy" }
Then check /var/log/ltm to see your log statements - you should be able to work out where it is going wrong. Also - make sure you have the oneconnect profile assigned to your virtual server so that it examines each request.
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