rewriting location header from server
I have an application on which my client connect to F5 on https and the F5 decrypt to server. The problem is my server (in response) is sending to F5 for each request an301 redirect and so the F5 is not able to analyze it: For example I did a curl on server with the host:
curl -v x.x.x.x -H https://toto.net
* About to connect() to x.x.x.x port 80
* Trying x.x.x.x ... connected
* Connected to x.x.x.x ( x.x.x.x ) port 80
> GET / HTTP/1.1
> User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Host: x.x.x.x
> Accept: */*
> https://toto.net
>
< HTTP/1.1 301 Redirection
< Server: WEB-Access-Server/1.9
< Date: Fri, 27 Jan 2012 17:09:32 GMT
< Content-type: text/html
< Content-length: 457
< Location: http://toto/index.htm
< Connection: Keep-Alive
Error 301
HTTP Error 301
301 Redirection
Vous allez être redirigé vers
Contactez l'administrateur du serveur si ce problème persiste.
* Connection 0 to host x.x.x.x left intact
* Closing connection 0
As you can see there is a 301 redirect with a different Location.
I tried to change this irules:
when HTTP_RESPONSE {
if { [HTTP::is_redirect] } {
STREAM::expression {@http://@https://@}
STREAM::enable
}
}
Thks for your help,
B./