Simple reverse proxy - 520 bad gateway

Maxim Dounin mdounin at
Thu Mar 16 13:06:07 UTC 2017


On Thu, Mar 16, 2017 at 10:39:19AM +0800, Jason In North Hollywood wrote:


> Error in the log is:
> 2017/03/15 22:04:27 [crit] 8647#0: *11 connect() to failed
> (13: Permission denied) while connecting to upstream, client:
>, server:, request: "GET /link1/ HTTP/1.1",
> upstream: "", host: ""
> whats a bit strange looking is the GET /link1/ - as this this should not be
> the link in the final upstream URL - it should not be trying to get this
> link.

The "request: ..." string in the error message is the original 
request as got from the client.  It is to be used to identify the 
original request which caused the error.

The upstream server and corresponding URI can be found in the 
"upstream: ..." string in the error message.

Maxim Dounin

More information about the nginx mailing list