Report this

What is the reason for this report?

How do I create an directory alias for use on my website?

Posted on February 23, 2018

I’m brand new to DO and linux and I’ve been looking for a while and still am not able to sort this out.

I need to create a virtual directory/shortcut/alias etc to use on the website so that www.website.com/docs/ points at the resources at /var/www/html/ifiles.

Thanks for the noob help in advance.



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.

In Apache that’d be “Alias /docs /var/www/html/ifiles”

Thanks for the input but I was asking the wrong question. I did need an alias but for apache. A little more digging and I was able to get that working.

Thanks again for your time and patence.

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.