Nginx Fast CGI cache ON error_page 404 Nginx Fast CGI cache ON error_page 404 nginx nginx

Nginx Fast CGI cache ON error_page 404


Your issue is that you need to give priority to your block of .php and not /render/framed/ when a .php is called in that location. It is still caught by the .php block

So you need to use below for your location block. You need to use

location ^~ /render/framed/ {  ...}

For understanding the same in details refer to

Nginx location priority