Forum Discussion
Dilip_bhapkar06
Mar 30, 2009Nimbostratus
how to redirect one virtual server to another through irules
Hi Friend,
I need to redirect one virtual server to another virtual server base of url. I tried to make the URL base iRule. Please help me how i mentioned the specific virtual server name in my iRule.
Let say i want to redirect mail.a.com to virtual server1 and mail.b.com redirects to virtual server2.
Also i tagged both virtual server1 and virtual server2 with SSL certificate. so this url (mail.a.com / or mail.b.com will also be redirect to https)
Please complete the irule.
when HTTP_REQUEST {
if { [HTTP::host] eq "mail.a.com" }
HTTP::redirect _ _? _ _
}
when HTTP_REQUEST {
if { [HTTP::host] eq "mail.b.com" }
HTTP::redirect _ _? _ _
}
- kris_52344Nimbostratuswhen HTTP_REQUEST {
- Dilip_bhapkar06NimbostratusHi Friend,
- Dilip_bhapkar06NimbostratusHi Friend,
- VladyslawNimbostratus
when HTTP_REQUEST {
if { [HTTP::host] equals"site1.example.com"} {
virtual Virtual_Server_1
}
}
- Eric_YNimbostratus
Did this work for anyone?
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