Forum Discussion
Multiple Website on one VIP
i have created one VIP (192.168.210.157) and NAT to Public IP address and mapped one Pool with two servers in it.
server 1 is hosting below websites
http://laserfiche/Laserfiche8 and
http://carehelpdesk:8080
Server 2 is having
http://erp2.abc.com:7001
I have created the below mention irule so that whenever someone request for server 1 URL F5 should redirect to Server1
when HTTP_REQUEST {
set host [string tolower [HTTP::host]]
if { $host eq "https://lf.abc.com"} { HTTP::redirect "http://laserfiche/Laserfiche8"
} elseif { $host eq "https://care.abc.com"} { HTTP::redirect "http://carehelpdesk:8080"
} elseif { $host eq "https://erp.abc.com"} { HTTP::redirect "http://erp2.abc.com:7001"
} elseif { $host eq "https://humanfuel.abc.com"} { HTTP::redirect "https://www.abc/donate/test" } else { discard
But i am unable to do this. I m getting hitts on irule but websites are not opening.
need assistance in irule.
Object:
Single VIP should serve all the website. irule (either match header/regex etc and send traffic to the desire server.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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