Forum Discussion
if http uri starts with
- Nov 12, 2015
Thank you sir.
I ended up having our dev team make a change so that I can have a single website with a virtual directory for each website and that worked well.
Thanks all. MJ
I guess I had to change strategy in hope that I could get the desired result differently. so I changed the iRule to look like this: when HTTP_REQUEST { if { [HTTP::uri] starts_with "/uri1" or [HTTP::uri] starts_with "/uri2" } { HTTP::header replace Host "host1.DomainName.com" pool Pool1 } if { [HTTP::host] equals "OldHost1" } { HTTP::header replace Host "NewHost1"
pool Pool2 } if { [HTTP::host] equals "OldHost2" } { HTTP::header replace Host "NewHost2"
pool Pool3 } else { pool Pool3 } }
now the problem is that the iRule is not replacing the host as instructed and in fact it's not doing anything at all, which is odd.
any help with this is greatly appreciated.
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