The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Nodejs on external/real server

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #189870

    I have a little local project I’ve been working on in order to learn a bit about node. All tutorials, videos, and examples I can find online use localhost with a port. So, in my case, my URL is: http://localhost:8888/chat-test/

    Now let’s say I want to push that out to a server. A specific URL, sans port.

    How do I do this? I can’t seem to get it going on my media temple testing/dev server. I’ve read I need to use proxying and all that, but I’m not knowledgable on the subject.

    Can anyone shed some light on how to use Node on a real-live server out on the netz?


    shared hosting or (v)ps?

    shared hosting: you’re probably out of luck.

    (v)ps: you can set up a forwarding proxy using apache or nginx. For example, if you’re already using Apache for other sites, set up a vhost for your node app like so:

    <VirtualHost *:80>
        ProxyPreserveHost On
        ProxyPass / http://localhost:8888/

    Might be a bit different depending on your Apache version and/or your specific OS/ configuration/ VSP setup. Look for tutorials for more info (those published by your host would be best). It’s not too difficult. The process using nginx is similar.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.