Issue
I'm trying to create a function that download files that are on the server with URL. I have APEX running on Tomcat 9. On the server there is a path /folder/files that contains files i wanna download with url. I found that for example I can download files from /i/ folder with URL easilly with for example http://{host}:{port}/i/css/apex.css. I tried to create a shortcut to /folder/files in that folder. Now there is a path ./i/files/. When I'm typing http://{host}:{port}/i/files/file1.pdf I get an 404.
How can I manage this or is there a better way to do that?
Solution
I found the simples solution. Just add to the server.xml line
<Context docBase="/folder/files" path="/files"/>
Now you must just remember to users have the privilage to read/execute/search from this path (the same owner, or the privilage for group or others). Now I can easily use the url in APEX (http://{host}:{port}/files/file1.pdf)
Answered By - Paweł Żurkiewicz