Serving up subdirectory when Ghost is already installed on Ubuntu

February 6, 2014 1.7k views
I think I am just missing a key config update here.. But what I am trying to do is set up a subdirectory on my Droplet to serve up some static HTML/CSS files.. I already have Ghost running on var/www and I installed it as part of the Droplet install. How can I configure a subdirectory to also run on Apache or at least let me display the contents of the directory? I tried to add a virtual host but that didn't do the trick..
1 Answer
Are you using the Ghost application, or did you install it yourself? If you're using the application, that uses nginx as its web server, not Apache. This tutorial should point you in the right direction for setting up virtual hosts with nginx:
by Etel Sverdlov
This tutorial shows you how to set up a new directory, how to grant the correct permissions, how to add content to a new page, how to turn on virtual hosting, and how to, if needed, set up local hosts. Virtual Hosts are used to run more than one website or domain off of a single server and IP address. When used with nginx, virtual hosts are called Server Blocks. This tutorial covers setting up server blocks on an Ubuntu server.
Have another answer? Share your knowledge.