I have a problem about nginx configuration. Who has any advice on how to set up denied access for the nginx website? My problem is that I can get to any folder in /var/www/mypage/www/
e.g. www.mypage.com/multimedia/files/file/testcase.xls
When I am not logged in what is the problem. Because when I set up location ^ ~ / multimedia
Now through the url on the folder I can not get but on the website I do not see any images or files. You know how to set a rule to deny access to all files in /var/www/mypage/www
and would only be visible to users signed in to the web?
location ^~ /multimedia/files/file { deny all; return 404; }
Aucun commentaire:
Enregistrer un commentaire