-1

Completely new to Linux and virtual private servers so please bear with me.

I have a webapp built on ExpressJS and NodeJS that runs on port 5000 of my server, accessible via web by typing: http://00.000.000.000:5000. When you go to my non-port IP address (http://00.000.000.000) it shows the CentOS Apache setup welcome page.

I've tried running my Express app on port 80, but I get an Address In Use error.

What do I have to do to set up CentOS so that accessing its IP address at 00.000.000.000 loads up my Express app? I've tried adding port 5000 to listeners in my /etc/httpd/conf/httpd.conf file but this did nothing.

Jascination
  • 101
  • 4
  • 1
    For reference, if you like, you can use TEST-NET-1 (192.0.2.0/24) to substitute for IPs, instead of zeros. – Falcon Momot Dec 01 '13 at 11:43
  • You may want to read some documentation on how TCP/IP, basic ports and apache etc work before jumping in at the deep end. – user9517 Dec 01 '13 at 11:48

1 Answers1

3

You got the Address In Use error because Apache is already listening on port 80.

If you want to access your Express app throught port 80, then you have to shutdown Apache and run your app on port 80.

Vinz
  • 712
  • 4
  • 13