Forum Discussion
Nacho_de_Aguina
Nimbostratus
Nov 08, 2005Redirector Problem
Hello everybody:
I´m trying to forward http requests to one or other Web server depending on the http header.
Example.
http://VirtualServer/magallanes --> Should go to Magalla...
JRahm
Admin
Nov 08, 2005There isn't a problem with the rule or the vip that I can see, check your 10.200.200.4 server to see if /magallanes is a valid directory in your httpd.conf file. I'm guessing you really want to strip the URI once it has been used to determine the server. Try this:
when HTTP_REQUEST {
log "Host is [HTTP::host], URI is [HTTP::uri]"
if { [HTTP::uri] starts_with "/magallanes" } {
log "IF successful on URI [HTTP::uri]"
HTTP::uri "/"
pool pool_magallanes
} elseif { [HTTP::uri] starts_with "/hansolo" } {
log "ELSEIF successful on URI [HTTP::uri]"
HTTP::uri "/"
pool pool_hansolo
}
}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