Any reason why Phoenix is not replying? (Connection refused while connecting to upstream)

Log from reverse proxy when trying to request from phoenix 1.3 production server.

2017/08/29 10:29:49 [error] 15307#0: *1 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: xxx.xx.xx.xx, server: myapp.tld, request: "GET / HTTP/1.1", upstream: "", host: "myapp.tld"

I used distillery and edeliver to build and deploy the production server.

It starts fine, pings, and stops ok.

Yet I can’t see the production server directly via nor after the redirect from http://www from the reverse proxy to the domain.

I’ve posted about this before, because this issue is still bugging me.

Any help appreciated, thanks.

1 Like

Configuration of your endpoint?

My config/prod.exs has

config :phoenix, :serve_endpoints, true

uncommented, instead of using:

#config :myapp, MyappWeb.Endpoint, server: true

Neither works.

I meant the whole XXX.Endpoint-configuration, where you configure your port and stuff.