K
K
kilimangaro2016-09-22 16:54:35
PHP
kilimangaro, 2016-09-22 16:54:35

NGINX How to redirect request to PHP-FPM if *.png is not found?

Tell me how to redirect a request to PHP-FPM in Nginx if a file with *.png extension is not found? At me the file is generated "on the fly" by a script. NGINX does not skip such a request and returns a 404 response. I need the URL to end with *.png extension.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2016-09-22
@Nc_Soft

read about try_files

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question