Forum Discussion
hooleylist
Mar 25, 2012Cirrostratus
Hi Denis,
Can you try this version with debug logging added? If it doesn't work, can you reply with the anonymized logs from /var/log/ltm?
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] ne "server.domain.com" } {
HTTP::redirect "http://server.domain.com[HTTP::uri]"
log local0. "[IP::client_addr]:[TCP::client_port]: Redirecting to http://server.domain.com[HTTP::uri]"
} else {
Check requested path
switch -glob [HTTP::uri] {
"/" -
"/application" {
HTTP::uri /application/application
log local0. "[IP::client_addr]:[TCP::client_port]: Rewriting [HTTP::uri] to /application/application"
}
"/jspellhtml2k4*" {
HTTP::uri /spellcheck[HTTP::uri]
log local0. "[IP::client_addr]:[TCP::client_port]: Rewriting [HTTP::uri] to /spellcheck[HTTP::uri]"
}
"/application*" {
Do nothing
log local0. "[IP::client_addr]:[TCP::client_port]: Preserving [HTTP::uri]"
}
default {
HTTP::uri /application[HTTP::uri]
log local0. "[IP::client_addr]:[TCP::client_port]: Rewriting [HTTP::uri] to /application[HTTP::uri]"
}
}
}
}
Thanks, Aaron