Hi,
In the string map command, don't set $http_uri between brackets!
HTTP_REQUEST {
set http_path [string tolower [HTTP::path]]
set http_uri [string tolower [HTTP::uri]]
if { $http_path starts_with "/security/servletauthentication"} {
HTTP::uri "/sense/secserver/ServletAuthentication"
}
elseif { $http_path starts_with "/sense/install/" } {}
elseif { $http_path contains "/applications/server" } {
HTTP::uri [string map {"/applications/server?download=" "/sense/appserve/Serve?download="} $http_uri]
} else {drop}
}
Do you really want to hide internal URLs by external ones? I guess it is more simple to redirect to new URI with 301 redirect.