Forum Discussion
Srinivasa_Chala
Nimbostratus
Sep 16, 2018Please assist me in creating irule
Hi All,
I need help in creating irule as i am new to F5. Please find the requirement details below.
Solution requirement :
WebApplication running Hassle Free return application will make HT...
youssef1
Cumulonimbus
Sep 17, 2018Hi,
here is a good base to start. Once we reach our goal we can optimize the IRULE.
So first of create a pool "pool-printer" with all your printer, suppose your printer listen on port 80:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/corpcode1/printername1/" {
HTTP::uri http://corpcode1-printername1.lsapps.net
pool pool-printer member 10.10.10.1 80
}
"/corpcode2/printername2/" {
HTTP::uri http://corpcode2-printername2.lsapps.net
pool pool-printer member 10.10.10.2 80
}
"/corpcode3/printername3/" {
HTTP::uri http://corpcode3-printername3.lsapps.net
pool pool-printer member 10.10.10.3 80
}
default {
nothing
}
}
}
that's what I understood from your request if you see some things inconsistent, keep me update.
regards,
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