Big-ip received from server 302 redirect

Hi all. I expose a Virtual server in HTTPS and big-ip load-balance in http forward back-end lan.

I receive from Apache server a 302 redirect message and i can not close the request.

Must i create a new virtual server with port 80 ?

What can i do to permit the full flow ?

Thanks in advance

You may need to re-write the 302 location header. You can do this with in iRule:

when HTTP_RESPONSE {
    if {[HTTP::is_redirect]} {
        HTTP::header replace Location [string map -nocase {http:// https://} [HTTP::header value Location]]
    }
}