Nginx: Fixed redirect action(phase 1,2,3,4) and wrong request_uri