Nginx没有把uri传递给php5-fpm,而是作为文本文件
如上所述,uri没有被传递给nginx。 我已经包括了整个“尝试”块来显示这个。 location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. set $page_to_view "/index.php"; try_files $uri $uri.php $uri/; # Uncomment to enable naxsi on this location # include /etc/nginx/naxsi.rules } 所以它本质上是说:“噢,我们做了$ uri.php文件存在,让我们服务器,而不是实际发送到PHP。 我的fpm部分在下面。 # pass the PHP scripts to FastCGI server listening […]