A
A
Andrey Pavlenko2018-06-27 12:34:35
Nginx
Andrey Pavlenko, 2018-06-27 12:34:35

Nginx try_files /does_not_exists - why?

In nGinx configs by default I see
try_files /does_not_exists @php;
It is clear that if the requested file does not exist, we redirect it to the PHP handler.
It became interesting whether the part of the line "/does_not_exists" has at least some meaning - or is it done for clarity and this line has no meaning and can be deleted?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lynn "Coffee Man", 2018-06-27
@Akdmeh

nginx.org/ru/docs/http/ngx_http_core_module.html#t...
try_files must have at least two arguments. Therefore, you cannot simply delete this line.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question