M
M
MarkBogrov2016-02-12 22:57:37
Node.js
MarkBogrov, 2016-02-12 22:57:37

How to access node.js from local network?

Hi friends, tell a newbie. I'm starting to get interested in node.js Installed in Parallels - ubuntu server installed node.js on it, installed Ghtost in the node and launched it. Judging by the terminal messages, everything is in order - Ghost is running in production... . But if I type in 10.211.55.12:2368 in the browser (the ip of the virtual machine is indicated here), there is an empty page in the browser.
There can be no complaints about the settings of the machine itself via ssh 10.211.55.12, the terminal connects perfectly (the node and ghots were installed from it). Also lifted ftp server similarly opens on 10.211.55.12. Accordingly, I dare to suggest that you need to configure the node so that it fumbles outside or ubuntu.
Tricky question:is it possible to set up a node so that applications would later be available in a sub directory? type :
10.211.55.12/ghost
10.211.55.12/testapp
10.211.55.12/otherapp If you ask why these perversions with a virtual machine, etc., I answer - I want to simulate the situation before buying a VPS, because the same troubles can arise there. PPS On a physical machine on the network, the same story. Thanks for any tips and kicks in the right direction!


Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2016-02-12
@MarkBogrov

https://github.com/TryGhost/Ghost/issues/5238

, I'm pretty sure the trouble you're having is that by default Ghost (node) is going to bind to your loopback interface (127.0.0.1) and won't be accessible externally without a proxy (the recommended setup). If you change config.js to point to 0.0.0.0 Ghost will bind to all available interfaces

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question