Forum Discussion

Raymond_Morris_'s avatar
Raymond_Morris_
Icon for Nimbostratus rankNimbostratus
Oct 27, 2005

Redirect http to https based on URI

I would like to redirect traffic on my VIP to use HTTPS, but only when they use a specific URI. I have attempted this with the following rule:

 

 

if (http_uri contains "/administrative") {

 

redirect to "https://%h/%u"

 

log "matched host(" + http_host + "), uri(" + http_uri + ") by client(" + client_addr + ") : using WAHA_Admin"

 

}

 

else {

 

use pool WAHA_Admin

 

log "didn't match host(" + http_host + "), uri(" + http_uri + ") by client(" + client_addr + ") : using WAHA_Admin"

 

}

 

 

The result of this is what appears to be a loop. My question is, is this configuration supported?

 

 

I have been able to configure this successfully using 3 VIPs and then using rules to redirect traffic amoung them. Obviously this is sub-optimal.

 

 

Thanks,