Forum Discussion
Source IP and match http host
I think that i actually have another problem. Now i tried to configure iRule where i will tell if HTTP::host contains abc.abc.com use test_pool but it is not working :(
I created VS with 443 service port, protocol TCP, Protoco profile tcp, HTTP Profile http, and SSL Profile (Client) SSS.COM
i created iRule: when HTTP_REQUEST { if { [HTTP::host] contains "abc.abc.com" } { pool test_pool } }
i have same VS with same setup, just instead of forwarding to pool i am using redirect to external URL and that is working fine.
Please help and tell me what i doing wrong :(
I don't see any issue with your iRule exept a problem of case sensitive. It's a good practice to add "string tolower" to eliminate case on your host comparison.
If you try with this iRule, do you see the log in /var/log/ltm when a client request abc.abc.com?
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] contains "abc.abc.com" }
{
log local0. "Inside IF, forward to test_pool"
pool test_pool
}
}
If yes your problem is somewhere else.
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