Answer the question
In order to leave comments, you need to log in
Apache 403 with Alias from external folder, how to fix?
Prompt with Apache.
PrescribedAliasMatch
AliasMatch "^/wp-content/uploads/2019/../(..)(.*)$" "/mnt/hdd/dbimg/$1/$1$2"
/wp-content/uploads/2019/01/0003872d0a1895044c64db87582c6dcc.jpg
/mnt/hdd/dbimg/00/0003872d0a1895044c64db87582c6dcc.jpg
<Location "/mnt/hdd/dbimg/00">
SetHandler dbimg
Require all granted
</Location>
<Directory "/mnt/hdd/dbimg/00">
Require all granted
</Directory>
Answer the question
In order to leave comments, you need to log in
PS
Found the keyphrase here https://stackoverflow.com/a/13355590/2103823
I had root rights on /mnt, created a test directory /tmp2 and gave it admin rights, everything worked.
Are there other ways, without changing permissions for /mnt (this is the directory where hdds are mounted) to complete the task?
<Location "/mnt/hdd/dbimg/00">...
Read about what document_root is and about relative paths. Why do you need to expose your entire file system to the Internet?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question