hi,
I have an application which is access via our F5 loadbalancer. Lets say the url is http://xyz.com/my/application/. The users accessing the url must be redirected to .xyz Domain Names | Join Generation XYZ i have been busy figuring out how to accomplish this, by using a http::redirect it works fine but i don’t want the url xyz.com to be changed in the clients webbrowser to the actual pool ip address. When i’m using the string range function to strip some characters off it works almost fine except i’m missing some page layout/stylesheets as the application expects them in the /application folder instead of /my/application folder because the clients browser url remains the same.
irule which is partially working but no stylesheet:
when HTTP_REQUEST {
switch [string tolower [HTTP::uri]] {
"/my/application/_" {
pool application_pool
HTTP::uri [string range [HTTP::uri] 3 end ]
}
"/test/other/_" {
pool test_pool
HTTP::uri [string range [HTTP::uri] 5 end ]
}
default {
pool other_pool
}
}
}
irule which works but changes the url in the clients webbrowser:
when HTTP_REQUEST {
switch [string tolower [HTTP::uri]] {
"/my/application/_" {
HTTP::redirect "http://10.1.1.12[string range [HTTP::uri] 3 end]" }
"/test/other/_" {
HTTP::redirect "http://10.1.1.13[string range [HTTP::uri] 5 end]" }
default {
pool other_pool
}
}
}
(how) can this be done?