Thanks for your hard work, I have found that if using https backend, it won't work, server will direct close the connection. curl --head 'http://localhost/track.js' curl: (52) Empty reply from server Posted at Nginx Forum: http://forum.nginx.org/read.php?2,213207,214265#msg-214265