You are still rewriting all URIs to "/AEEP/"
http://www.cert.abms.benelogic.com/ -> http://memberc06.benelogic.com/AAEP/
http://www.cert.abms.benelogic.com/images/picture.jpg ->
http://memberc06.benelogic.com/AAEP/
http://www.cert.abms.benelogic.com/bin/ ->
http://memberc06.benelogic.com/AAEP/
...
All requests are going to the backend server as "/AAEP/" which will obviously not work.
If you can provide me a full list of URL mappings you want to perform, then we can get going. I'm just guessing at this point.
Something like this would work
Host: wwwcert.abms.benelogic.com -> memberc06.benelogic.com
URIs:
/ -> /AEEP/
/index.html -> /AEEP/index.html
/images/* -> /AAEP/images/*
/bin/* -> /AEEP/bin/*
...
I think that mapping is what you are getting at, but it's a bit unclear.
If those are the mappings you are looking for, this should work.
when HTTP_REQUEST {
if { [HTTP::host] equals "wwwcert.abms.benelogic.com"} {
HTTP::header replace "Host" "memberc06.benelogic.com"
switch -glob [HTTP::uri] {
"/" -
"/images/*" -
"/bin/*" {
HTTP::uri "/AAEP[HTTP::uri]"
}
}
}
}
This will basically map a default request "/" or any requests in the /images or /bin directory to be prefixed with "/AAEP". If this isn't what you want, please add a detailed mapping of the transforms you want and we'll see what we can do to help out.
-Joe