I should make a conditional rediction in nginx. I would like to do something like that.
$http_code = code from curl commande
if ( $http_code = 200 ){
"redirection to server 1"
}
else {
"redirection to server 2"
}
So can someone help me to find a way to do it, or give me example of nginx conf with condition like this.
Thanks