Forum Discussion
Kuerten_772
Feb 13, 2014Nimbostratus
APM Irule multiple access profile for one virtual server
Hello F5 Team,
i was asking if is possible to create irule to use multiple profile for one virtual, currently i have one access profile for one vs apm .
Thank you for your help.
Ahmed
Kevin_Stewart
Feb 13, 2014Employee
You cannot, but you can usually work around this with VIP targeting. This is where you have one external VIP that sends traffic to internal VIPs using the virtual command. How you do this depends on how you have services divided on that external VIP. For example, if you have multiple host names all resolving to that one VIP, then the iRule might look like this:
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"app1.domain.com" { virtual app1_vs }
"app2.domain.com" { virtual app2_vs }
"app3.domain.com" { virtual app3_vs }
"app4.domain.com" { virtual app4_vs }
}
}
You can technically also do this with different URIs, but it's a lot trickier.
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