Report this

What is the reason for this report?

Access digital ocean volume using nginx alias

Posted on October 20, 2016

I would like to alias /home/mrneilypops/databank to /mnt/volume-fra1-01/databank I followed the guide here for nginx;

https://www.digitalocean.com/community/questions/how-do-i-access-the-space-on-an-attached-volume-from-my-webroot

I added the alias to /etc/nginx/sites-available/default as per;

location /home/mrneilypops/databank/ {
                alias /mnt/volume-fra1-01/databank/;
        }

This does not alias the volume databank file.

Any tips would be welcome…

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.