Forum Discussion
Can I change the condition of iRule from [HTTP :: host] to [URI :: host [HTTP :: uri]]?
Assignment by HOST header of Web communication is done as follows.
NOW iRule: not ( [HTTP::host] matches_regex {^..*.test.com(:\d+)?$}) )
However, it was found that there is a difference between the contents of the HOST header and the FQDN of the request URI, and it does not result in the allocation as expected. For that reason, I am planning to change the setting as follows so that assignment is made by FQDN of the request URI.
NEW iRule: not ( [URI::host [HTTP::uri]] matches_regex {^..*.test.com(:\d+)?$}) )
Is it ok to use [URI::host [HTTP::uri]] instead of [HTTP::host]? Also, is [URI::host [HTTP::uri]] the correct way to get the FQDN of the request URI?
In my opinion, [URI::host $uri] or [HTTP::host] should give the same output.
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