Forum Discussion
tran_93981
Nimbostratus
Oct 11, 2015proxy to specific node with specific url
Hello,
I am trying to write iRule to accomplish this
Here is what I am trying to do
http://publicserver.com/engineering/las ---> internalserver.com:9290/las
http://publicserver.com/en...
Michael_Jenkins
Cirrostratus
Oct 11, 2015I think your syntax for the node command may be incorrect. You may need to add
"s around it. And I'd use a switch statement instead. Something like this:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/engineering/las*" {
HTTP::uri "/las"
node a.b.c.d 9290
or node "a.b.c.d:9290"
log local0. "/ENGINEERING/LAS::::::[HTTP::host] THE-IFuri[HTTP::uri]"
}
"/engineering/thredds*" {
HTTP::uri "/thredds"
node a.b.c.d 9290
or node "a.b.c.d:9290"
log local0. "/ENGINEERING/THREDDS::::[HTTP::host] THE-uri2[HTTP::uri]"
}
default {
log "default: '[HTTP::uri]'"
pool public-pool
}
}
}
And what logs do you see in the ltm logs?
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