Forum Discussion
sandy16
Altostratus
Nov 13, 2012stream profile to match customer facing uris
Folks,
need help in configuring a stream profile for re-writing uris for a cutomer facing requirement. I have an irule configured on the VIP which basically sends request to different server-poo...
sandy16
Altostratus
Nov 13, 2012here you go -
when HTTP_REQUEST {
log local0. "URI = [HTTP::uri]"
switch -glob [string tolower [HTTP::uri]] {
"/devproxy" {
pool devproxy-pool
return
}
"/qaproxy" {
pool qaproxy-pool
return
}
"/uatproxy" {
pool uatproxy-pool
return
}
default {
HTTP::respond 200 content "Please use /devproxy to go to the dev-dmz-proxies,
/qaproxy to go to the qa-dmz-proxies,
/uatproxy to go to the uat-dmz-proxies" noserver Content-Type "text/html" Connection Close
}
}
}
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