Forum Discussion
Rikardo_77456
May 07, 2011Nimbostratus
Priority Group not working correctly
Hi, I've only been using the F5 BIG-IP for a few weeks and am trying to get priority groups working for one of our pools. I'm sure i've set it up correctly but connections still keep appearing on the ...
Rikardo_77456
May 11, 2011Nimbostratus
We do have another virtual server, but it's completely unrelated and not used by the same users. Web_VS is http, while Web_VS2 is https for a different set of users. Should I have another virtual server setup instead of just redirecting the user to a different pool in irule URI_Forwarding?
Other irules:
rule InsertXForwaredFor {
when HTTP_REQUEST {
if {[HTTP::header exists X-Forwarded-For]}{
HTTP::header replace X-Forwarded-For "[HTTP::header X-Forwarded-For], [IP::client_addr]"
} else {
HTTP::header insert X-Forwarded-For [IP::client_addr]
}
}
}
rule Cache_Selective {
when HTTP_REQUEST {
if { [HTTP::host] equals "static.abc.com" } {
CACHE::enable
} else {
CACHE::disable
}
}
}
rule Force_HTTPS {
when HTTP_REQUEST {
if { [HTTP::host] equals "www2.abc.com"} {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
}
rule RSS_Forwarding {
when HTTP_REQUEST {
if { [HTTP::host] equals "www.abc.com" && ( [HTTP::uri] starts_with "/rss1/" || [HTTP::uri] starts_with "/rss2/" ) } {
pool Web_Pool1 member 192.168.1.20 80
}
}
}
rule ServerSpecificForwarding {
when HTTP_REQUEST {
if {[HTTP::uri] contains "20.html"} {
pool Web_Pool1 member 192.168.1.20 80
} elseif {[HTTP::uri] contains "23.html"} {
pool Web_Pool1 member 192.168.1.23 80
}
}
}
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