Slumlorde_21011
Apr 21, 2016Nimbostratus
iRule Rewrite Question
I've got a iRule that I would like to edit so that when I direct someone to marvel.somedomain.net pool it redirects to either kibana.somedomain.net or marvel.somedomain.net and appends the url with /app/kibana or /app/marvel depending on what site they are trying to reach. How would I go about this?
Both of these apps run off of the same port on the servers in the pool which is why I think I need a solution for this. If there is a better way to go about it I'm open to anything.
from: https://devcentral.f5.com/articles/name-based-virtual-hosting-with-ltm.Unfi8eLjWW5
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
marvel.somedomain.net { pool EXT_marvel.somedomain.net_https_pool }
default { reject }
}
}