How can I use both Apache and nginx on the same droplet?

June 14, 2015 2.7k views
Nginx Apache Ghost Ubuntu

I want to install Ghost on my droplet, but I already have Apache Virtual Host, so I'm not sure how to get Ghost set up.

3 Answers

You can use the apache virtualhosts to get this working on the same droplet. You should create a sub-domain name or another domain and redirect it to the IP of your droplet. In Ubuntu you can find the location of the virtualhost file in:


And by default you can find the main apache configuration file at:


place the following configuration in the file, changing ServerName and ServerAlias to your specific configuration.

<VirtualHost *:80>
     ProxyRequests off
     ProxyPass /
     ProxyPassReverse / http:/
edited by asb
Have another answer? Share your knowledge.