Nginx access denied error

After setting up a new web root directory for my php app, all I see was:

Access denied

I removed this line in my server block and everything works:

fastcgi_param   PATH_TRANSLATED     $document_root$fastcgi_path_info;
Because I set cgi.fix_pathinfo to 0 in /etc/php/7.0/fpm/php.ini so it conflicts with the above setting.