I have some media in the directory /mnt/sda1 that I would like to embed in my webpage with root at /var/www.
I tried adding to /etc/apache2/sites-enabled/000-default.conf:
Alias /media/ "/mnt/sda1/"
<Directory "/mnt/sda1/">
Order allow, deny
Allow from all
AllowOverride All
</Directory>
But when I attempt to go to mydomain.net/media/file.html I get a 404 error. Writing "http://mydomain.net/media/video.mp4" as the source for a video in html also does not work.
I've tried writing the path with and without quotes and trailing slashes.
I'm not sure where to go from here. Everything I see online points me to what I've already done. Can anyone help point me in the right direction?