Can I run a Ghost blog using Apache and node.js?

May 27, 2014 4.2k views
I host multiple websites on my server, most of which are anywhere from basic HTML pages to Wordpress blogs. Is there any way that I can run a Ghost blog along side all of that on a separate virtual host within Apache? I've tried doing this in the past but I had Nginx and apache both running. I'm just beginning to learn about node.js, so I'll I know at this point is that it's needed for Ghost to run. tldr; I want to have a ghost blog that I can server with apache and still be able to access my other websites.
2 Answers
Sure you can! Node apps have their own web server built in. When you run Ghost, it will is served on port 2368 by default. The port can be configured in /path/to/ghost/config.js You can then set up an Apache VirtualHost that proxies port 2368 to the subdomain or subfolder you want using a ProxyPass. Check out this article for more info on Apache ProxyPasses:
by O.S. Tezer
In this DigitalOcean article, we are going to see set up Apache on Ubuntu 13 and use it as a reverse-proxy to welcome incoming connections and redirect them to application server(s) running on the same network. For this purpose, we are going to use and work with the mod_proxy extension and several other related Apache modules.
Have another answer? Share your knowledge.