as subject - I notice that the line
try_files $uri =404;
Is commented out. Why?
thanks :)
Because if the file does not exist it will produce a 404 not found and we need to rewrite it to the PHP router which will handle it later.
https://nginx.org/en/docs/http/ngx_http_core_module.html#try_files
Thank you. Forgive the perhaps silly question but does that protect against the upload attack?
I think that is handled later by if (-f $request_filename) {
ok I'm confused :) I though If was evil? https://wiki.nginx.org/IfIsEvil
It could be evil not always evil
PS: I also like to finish my phrases with :)