DineshVM_265886
Feb 06, 2017Altostratus
iRule giving 401 unauthorized error
Hi, Can anyone help me with the below iRule? I am getting a 401 unauthorized error when I use the below iRule but I get a 200 ok without the iRule. Should I include the pool information in the iRule ?
when RULE_INIT { set nURI 0 }
when HTTP_REQUEST priority 500 {
switch -glob [HTTP::uri] {
"/" {
set nURI [string map {"/" "/v1/"} [HTTP::uri]]
}
default {
set nURI [HTTP::uri]
}
}
HTTP::uri "${nURI}"
}