Do I need nginx to run Ghost?

May 4, 2015 901 views
Ghost Deployment Ubuntu


I was trying to install Ghost on my droplet but almost all of the tutorials I found required nginx to be installed. I don't want to install nginx because I have Apache installed already. Do I really need nginx to run Ghost?


3 Answers

You don't require nginx to be installed to run Ghost and it can easily be replaced with Apache or run standalone. nginx is preferred as it's more focused on proxy/static file hosting than Apache and is for those reasons perfect for use with Ghost. To use it with Apache, simply setup a virtual host that reverse proxys to your Ghost blog in your Apache config so that any requests on that virtual host will go through Apache to your Ghost blog.

Ghost runs its own Node.js-based webserver, so you can use any program that supports reverse proxying in place of nginx.

It is possible to use Apache's mod_proxy extension to proxy requests to the built-in Ghost webserver. Take a look at the following tutorial:

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.