Forum Discussion
Vova_1985_18320
May 28, 2015Nimbostratus
iRule based on domain
Hi im looking for a way to accept traffic with * expression, is it possible?
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "*.example.com*"} {
pool $HTTP_pool
} el...
Vova_1985_18320
May 28, 2015Nimbostratus
No actully this is the full iRule: Now i dont have syntax error, however its always send "err_connection_reset"
when RULE_INIT {
set HTTP_pool MY_POOL_HTTP
}
when HTTP_REQUEST {
if { [HTTP::header exists Origin] } {
switch -glob ([string tolower [HTTP::header Origin]]) {
"test.com" { pool $HTTP_pool }
"test2.com" { pool $HTTP_pool }
"test3.com" { pool $HTTP_pool }
default { HTTP::respond 403 }
}
}
}
- PeteWhiteMay 28, 2015EmployeeOK, can you run 'tail -f /var/log/ltm' and show the output from there relevant to the irule when you test it.
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