K
K
Kirill Zhilyaev2017-06-08 00:30:33
PHP
Kirill Zhilyaev, 2017-06-08 00:30:33

Why does php process non-existent scripts?

If any 404 php request is sent to the site, it will be "No input file specified." How to make it so that there is an error like in other cases?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
egor_nullptr, 2017-06-09
@egor_nullptr

Add this to the config instead try_files:

if (!-f $document_root$uri) {
    return 404;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question