I have static resources (mp3s and images) that I want to use in a website hosted on Apache virtual host with the following configurations:
<VirtualHost *:80>
ServerName example.com
serverAlias myexample.loc
DocumentRoot /home/USER/www/yii2/web
<Directory "/home/USER/www/yii2/web">
AllowOverride All
Options Indexes FollowSymLinks MultiViews
Require all granted
</Directory>
</VirtualHost>
The resources are found on flash memory on a path like the following:
/media/USER/KINGSTON/audio
I have created a symbolic link for the above directory in the site's document root using ls -s
like the following:
sudo ln -s /media/USER/KINGSTON/audio /home/USER/www/yii2/web
However, trying to access any resource leads to 403 Forbidden
error. How could I give secure permissions that allows the www-data user to access it?