Jake Stimpson Jake Stimpson - 1 year ago 129
Apache Configuration Question

Running nodejs app on Centos7 apache server

I'm trying to run a node web app (built with meteor) on a Centos7 server running EasyApache4 with WHM cPanel. I'm trying to run it on a subdomain off of one of our main websites on port 8080.

When going to the subdomain on port 8080, the connection just times out, but can see the html when using curl to access it.

Does anyone have any ideas why it won't work through the browser, and also how I can get it to look like it's running straight from the subdomain instead of having to go directly to the port.


Below is the curl we are using to view the html

curl http://subdomain.site.com:8080

Doing that brings back the html no problems

Answer Source

Had the same problem today. I am using Memset Centos7 server with WHM/CPanel, running EasyApache 4.

After trying everything I could think of, I realised that I had a basic firewall setup, which closed all ports that were not listed. After adding port 8080, it worked.

Used this:

sudo iptables -I INPUT 1 -i + -p tcp --dport 8080 -j ACCEPT

I am not 100% certain how secure this is, as I am still researching.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download