0
Under review
NodeJS App + Domain
I'm new to the whole MEAN stack, even more so to Ajenti ( which I love by the way ). I have all the plugins necessary to run my application running, and the forwarding to my domain seems to be working flawlessly. The only issue standing is my Node App runs on port 3000 - I'm playing around with KeystoneJS - and when I try and request my domain I'm throwing with a NGINX error ( 502 Bad Gateway ). This happens of course because there is no index/route document, and this can also easily be fixed by redirecting my application to port 80 -- which I cannot do because I'm planning on running several node apps.
The problem is, is that I'm either misunderstanding Ajenti's usage of NGINX or I need to override and redirect to port 3000. You see, I believed that just this would naturally get the job done as shown in the keystone tutorial found in the knowledgebase,
Though it does not sadly.
The problem is, is that I'm either misunderstanding Ajenti's usage of NGINX or I need to override and redirect to port 3000. You see, I believed that just this would naturally get the job done as shown in the keystone tutorial found in the knowledgebase,
Though it does not sadly.
Customer support service by UserEcho
Everything's working fine, but when I access my domain associated with my app, it just throws me a NGINX 502 error ( Bad Gateway ). That being stated, if I try and request my domain with the port my app is being hosted on ( 3000 ), I can access my node application without a hitch.
Regarding my error logs, they're completely empty.
It's not really much of an error, more of a configuration type issue.
If you see a 502, there has to be an error message in the logs. Either in /v/l/n/website.error.log, or in /v/l/n/error.log
Try to tail -f all available logs in /var/log/nginx while accessing the website, in case NGINX is logging into a wrong file.
The issue honestly doesn't make sense to me, as the NGINX configuration should work.
@Anyone having the same problem,
So I have to physically request the port my app is running on, on my domain, to get the node app.