Ghost is a great blogging platform built with node.js. It is what I use to run this blog. Most of the instructions online deal with using NGINX to proxy requests to and from the running node instance. I needed to use Apache, since the server I installed on already has Apache. This guide will show you how to set up proxy pass on Apache.
Getting Started
You should already have these prerequisites installed:
- Linux Server
- Apache 2
- NodeJS and Ghost
To start we need to install the proxy pass Apache module:
|
|
We then need to install enable the modules:
|
|
Then restart Apache:
|
|
After restarting Apache, I got the following error on Ubuntu 13.10:
|
|
After doing a quick Google search, I found this solution in the Ubuntu forums, http://askubuntu.com/questions/368515/upgraded-to-ubuntu-13-10-apache-not-able-to-start:
|
|
Apache came up without errors after compiling and installing the module from source.
Time to change Apache’s configuration
After getting the correct modules installed, it is time to enable proxy pass for your website. I use virtualhosts on my server, so I only enabled proxy pass for the virtualhost that serves this site.
Edit your configuration file for your virtualhost under:
|
|
You will need to add these lines:
|
|
The port 2368 is what Ghost’s built in server listens on. This is telling Apache to take any http requests for this site and forward them to our Ghost server.
You can now reload Apache’s configuration:
|
|
With luck, you will now be able to browse to your site and Ghost will open up.
comments powered by Disqus