I’m trying to portforward my Ghost Development but cannot seem to start it on the server where it is located.
Weirdly enough when I ssh to my linux server, start ghost through ssh, the ghost web server runs on my pc on localhost instead of 192.168.x.x:2368 (server ip).
How can I make sure it runs on localhost on the server instead of my PC where I’m just using ssh to start it.
As always, be careful when port forwarding - lots of security things to think about
The host that Ghost listens on is configured via the server.host
property.
→ listen on network IP: ghost config set server.host 192.168.x.x
→ listen on all interfaces: ghost config set server.host 0.0.0.0
You should get a reminder, but config changes don’t apply until you restart Ghost → ghost restart
1 Like