However, I don’t know what permission to give to the directorydownloads to be able to access it with <my ip>/downloads from my browser, without blocking access to the downloads in /mnt/dietpi_userdata/downloads used by Aria2 for downloads.
At the moment when I type in the address bar of my browser <my ip>/downloads I get an error message 403 Forbidden.
A little help would be appreciated - thank you all.
No, leave the link, but I tried to recreate your config and I found an issue.
With your command ln -s /mnt/dietpi_userdata/downloads /var/www/downloads you will get a folder inside downloads like /var/www/downloads/downloads, which is maybe not what you want to achieve?
If you want the files from inside /mnt/dietpi_userdata/downloads to be shown in /var/www/downloads (like you have a file movie.mp4 inside your original downloads folder and you want to access it via /var/www/downloads/movie.mp4) you need to modify the syntax of the command, but first let’s remove the false link
rm /var/www/downloads/downloads
and create the right one
ln -s /mnt/dietpi_userdata/downloads /var/www/
Then it is important that anybody can read these files, so let’s check this with
/mnt/dietpi_userdata/downloads is readable, also /var/downloads.
The module mod_dirlisting is loaded by default and don’t has to be activated in any config.
Let’s make sure the content of the created config is right: cat /etc/lighttpd/conf-available/99-dir-list-downloads.conf
Yeeeep ! - after a restart I have access to the page downloads - I’m just doing a test download withAria2 …- I’ll be right back for feedback … I think we’re good. … I’ll be back.
Aria2 can download
-Index of /downloads/
is accessible and readable from my browser (I’ll look later if the stream or DL doesn’t work),
-possible to hide : Screenshot by Lightshot (prnt.sc) the Aria2.session ?
I have restart the device … after the last command : service lighttpd force-reload