Forum Discussion
danra_139044
Altostratus
May 05, 2014iRules: How to avoid HTTP_RESPONSE from rule 2 affect rule 1
When I added an HTTP_RESPONSE on rule 2, when rule 1 gets processed, it inserts the header from rule 2.
Is there a way to discriminate processing both HTTP_RESPONSES? I tried to set priority to 501,...
danra_139044
Altostratus
May 05, 2014So it would look something like below? I will give it a try.
rule 1:
when HTTP_REQUEST {
if { [HTTP::path] contains "did725"} {
pool mypool
}
}
event HTTP_RESPONSE disable
rule 2:
when HTTP_REQUEST {
if { [HTTP::path] contains "did825"} {
}
when HTTP_RESPONSE priority 501 {
if { [HTTP::status] == 200 } {
HTTP::header insert name value
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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