Do I need nginx to run Ghost?


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?



Submit an 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.

Thanks :D

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:

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.