Forum Discussion
mayur_m_150368
Nimbostratus
Apr 16, 2014How we can publish multiple applications on same VIP with same port & same irule?
We have recently procured F5 device for Reverse proxy. We are now migrating ISA applications but while migration we are facing issue.
I need help to create irule as per our requirement.
If we have ...
mayur_m_150368
Nimbostratus
Apr 16, 2014Need to clear points,
If we have “abc.com” & “xyz.com” two url’s those are published through F5 on 443 port with same VIP. Case 1:- If any request hits to virtual IP it should redirect to 8080 & Case 2:- If ‘/document’ & ‘/CVwebap’ comes in URL it should route to 9090.
For such scenario we have 2 separate pools for both application.
1.Abc_8080 ---------- This is default pool for “abc.com”
2.Abc_9090 ----------- if “abc.com/documents” & “abc.com/cvwebap” it should come to this pool
3.Xyz_8080 ------------ This is default pool for “xyz.com”
4.Xyz_9090 ------------ if “xyz.com/documents”& “xyz.com/cvwebap” it should come to this pool.
I have created below irule, but it is not working, Can anyone help me to resolve it?
when HTTP_REQUEST {
SSL::disable
if { [string tolower [HTTP::host]] equals "abc.com" } then
{ if { [HTTP::uri] contains "cvapweb" } {
pool abc_9090
} else {
pool abc_8080
}
}
}
}
elseif { { [string tolower [HTTP::host]] equals "xyz.com" } then
{ if { [HTTP::uri] contains "cvapweb" } {
pool xyz_9090
}else {
pool xyz_9090
}
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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