Welcome! Log In Create A New Profile


Whitelisting files with certain extensions

Posted by ST 
Whitelisting files with certain extensions
August 10, 2017 03:40PM

we had following problem: one of the developers has saved a .php file
as .php.old. This file, if requested directly, was offered by nginx for
download and thus exposed. What is the right way to solve this?

1. initial idea was to whitelist all the legitimate file extensions that
we use and block the rest. Is this the right approach? If yes - what is
the best way to do this?

1.1 we have one directory that has legitimate files without any
extension that we also want to serve... how to make an exception for
this directory?

Thank you!

nginx mailing list
Sorry, only registered users may post in this forum.

Click here to login