How to add a Context (Directory) within another Context?

#1
Hi all,

I have OLS installed on CentOS 8.
I created a context for a directory under the $DOC_ROOT/Downloads which is auto indexed.
Now I want to add another context that is inside the Downloads directory but is on another drive.
For example -
My original Context - $DOC_ROOT/Downloads (this is a directory that is actually under $DOC_ROOT/Downloads)
My additional context - $DOC_ROOT/Downloads/Temp (this is a directory that is under /home/admin/Temp)

I tried numerous combination, even tried a sym link with the link created under Downloads. Nothing worked so far and I get 403 or 404.

Thanks in advance!
 

Cold-Egg

Administrator
#2
Assume you have two URI of the context, e.g.
`/Temp/` = point to the "/home/admin/Temp "
`/` = point to the "$DOC_ROOT/Downloads"

Does the above example not work? If you only have `/Temp/` = point to the "/home/admin/Temp " context, does it returns a 403 or 404? If it's 403, then it means a permission issue somewhere.
 
Top