Report this

What is the reason for this report?

Do I need nginx to run Ghost?

Posted on May 4, 2015

Hi,

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?

Thanks



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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:

Thanks :D

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.