Forum Discussion
Micka_61352
Jul 21, 2011Nimbostratus
Redirect traffic to root directory on server pool
Hi there,
Wondering if anyone can help. Will this iRule work. I want to be able to look at URL straing for data and send it to specific pool listening on port 81 once it hits t...
The_Bhattman
Jul 21, 2011Nimbostratus
Hi Michael, Note: I haven't tested this method out before so hopefully it works
If you have port translation turned on then it's possible you don't need port 81 in the URL itself.
In that case you can write it up as the following
when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { "/data/*" { HTTP::uri "/Account/LogOn" pool IESDWEB_HTTP_81 } default { pool IESDWEB_HTTP } } }
However, incase you don't it could be written in the following manner
when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { "/data/*" { HTTP::uri ":81/Account/LogOn" pool IESDWEB_HTTP_81 } default { pool IESDWEB_HTTP } } }
Bhattman
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