Hi, Never mind, I figured it out by myself. The subrequest will enter the fail label which will return an NGX_ERR that caused the above-mentioned error. Thanks. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,294374,294392#msg-294392