We use Magento 2.1.10 and Nginx 1.12.1 on Ubuntu 17.10.
We would like to create a directory outside of Magento’s root directory (e.g. /var/www/download, Magento root: /var/www/html/magento) that contains files that can be directly downloaded. The files in the directory should be downloadable as follows: www.example.com/download/.
We played around with Nginx’s locations but none of our attempts worked. It seems like, that every request to /download/ is processed by Magento and of course, their is no route /download/ in Magento. Thus, either the “Whoops our bad, …”-page or “404 error: Page not found.” is displayed.
Has anyone an idea how to achieve this? How shall we configure Nginx and p.r.n. Magento?
We appreciate any help!