Forum Discussion

Re: 2 different URI (on the same VIP) call to same server

How many Pool members are there behind application "test.com", If only one then all request will be served to node "192.168.10.5" and simple iRule is enough to serve request. No issue with SSL certificate.

when HTTP_REQUEST {
      if {[HTTP::host] ne ""}{
            HTTP::respond 301 Location "https://[getfield [HTTP::host] ":" 1][HTTP::uri]"
   } else {
            HTTP::respond 301 Location "https://[IP::local_addr][HTTP::uri]"
   }
} 

Hope it will work for you.

No RepliesBe the first to reply