在根外部访问PHP文件

这是我的nginx conf:

server { root /var/www/html/public; location / { rewrite ^(.*)$ /index.php last; try_files $uri $uri/ /index.php?$query_string =404; } location = /path/file.php { root /var/www/html; try_files $uri $uri?$query_string =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.0-fpm.sock; } } 

第一部分工作正常,所有的URL被redirect到/public/index.php。 但是,我无法访问/path/file.php。 使用当前configuration,它将下载文件而不是解释它。 我一直在玩,但与我试过的其他选项,请求得到/public/index.php处理。

我如何允许在根外部访问这个特定的文件?