Forum Discussion
The question about the rewriting URI based on source IP
Hi Patrik,
I made a mistake. Purpose has changed.
The condition correctly is the follow.
The service domain originally is "test.abc.com".
-
When the request with 10.10.10.0/24 is arrived, I want to not change "test.abc.com" and forward the default pool.
-
When the request with the remaining IPs is arrived, I want to replace "test.abc.com" to "www.abc.com/go"
I maked the following..I know the following rule is not cool..so hard..
when HTTP_REQUEST { if { [IP::addr [IP::client_addr] equals 10.10.10.0/24] } {
} else { HTTP::header replace Host "www.abc.com/go"
}
}
Thank you
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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