为什么下载index.php而不是由Nginx渲染?
我已经撞了两天了。问题是index.php而不是对其进行下载而不进行处理。我使用Ubuntu 14.04,Nginx,php5。该nginx/site-available/default如下所示。我已经添加了index.php许多帖子所规定的条目。 server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /usr/share/nginx/html; index index.php index.html index.htm; # Make site accessible from http://localhost/ server_name localhost; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ …