How to redirect my sub-domain to localhost:5000 in Https with Nginx?
Solution 1:
Your application server is not listening on Port 5000.
connection refused
indicates that nothing is listening on that port on that interface.
An empty output of ss -tnlp |grep :5000
confirms that nothing is listening on that port.
If your application server is indeed running, check it's configuration for the correct port. If it is not running, start it.