I removed the 50x.html line in the config. Now I get this bad gateway error from hurl.it & the error log on the pi looks like this:
2017/04/23 19:48:27 [error] 20302#0: *1 upstream prematurely closed connection while reading response header from upstream, client: 23.20.198.108, server: subdomain.domain.com, request: "POST /API/switches/sw1?password=123456 HTTP/1.1", upstream: "http://192.168.1.53:442/API/switches/sw1?password=123456", host: "subdomain.domain.com"
2017/04/23 19:48:27 [error] 20302#0: *1 upstream prematurely closed connection while reading response header from upstream, client: 23.20.198.108, server: subdomain.domain.com, request: "POST /API/switches/sw1?password=123456 HTTP/1.1", upstream: "http://192.168.1.53:442/50x.html", host: "subdomain.domain.com"
Thats the correct localLanIP for the rpi and the 442 port is whats configured in the .env file for the app.js to listen for.
2017/04/23 19:48:27 [error] 20302#0: *1 upstream prematurely closed connection while reading response header from upstream, client: 23.20.198.108, server: subdomain.domain.com, request: "POST /API/switches/sw1?password=123456 HTTP/1.1", upstream: "http://192.168.1.53:442/API/switches/sw1?password=123456", host: "subdomain.domain.com"
2017/04/23 19:48:27 [error] 20302#0: *1 upstream prematurely closed connection while reading response header from upstream, client: 23.20.198.108, server: subdomain.domain.com, request: "POST /API/switches/sw1?password=123456 HTTP/1.1", upstream: "http://192.168.1.53:442/50x.html", host: "subdomain.domain.com"
Thats the correct localLanIP for the rpi and the 442 port is whats configured in the .env file for the app.js to listen for.