Forum Discussion
6 Replies
Sort By
- IheartF5_45022Nacreous
A bit more information would be useful, but is this what you are after?
if {[string toupper [HTTP::method]] eq "CONNECT"} { pool }
- adamp_1459Nimbostratusi 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_45022Nacreous
Try;-
if {[string toupper [HTTP::method]] eq "CONNECT" && [HTTP::host] starts_with "google.com"} { pool }
- adamp_1459Nimbostratusill try thanks
- adamp_1459Nimbostratushmm 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_45022Nacreous
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.