nginx + fpm rules problem; File not found or script is downloaded instead of being executed nginx + fpm rules problem; File not found or script is downloaded instead of being executed nginx nginx

nginx + fpm rules problem; File not found or script is downloaded instead of being executed


You have an error in your try_files statement. Remove the =404 so that the /index.php$is_args$args is the last parameter.

For example:

location / {    try_files $uri $uri/ /index.php$is_args$args;}

The last parameter of try_files statement can be a URI, status code or a named location. Choose one! See this document for details.