Is NGINX the server from http://nginx.org/?
Are you trying to use your application to access remote resources from a server?
We need a further description of what your application is and does, in order to help you.
Oh! that is my fault… I was thinking that you incorporate NGINX into your software as a mini server
It turns out to be my settings doesn’t recognize the localhost and redirect it to my server on Internet