• server
  • {
  • listen 80;
  • server_name www.blog.com blog.com;
  • index index.html index.htm index.php default.html default.htm default.php;
  • root /home/wwwroot/blog.com;
  • - include /home/wwwroot/blog.com/nginx.conf;
  • location ~ .*\.(php|php5)?$
  • {
  • try_files $uri =404;
  • fastcgi_pass unix:/tmp/php-cgi.sock;
  • fastcgi_index index.php;
  • include fcgi.conf;
  • }
  • - }
  • 复制代码现在用 chrome 访问www.blog.com 直接下载index.php 了

www.blog.com/* 任何其他页面都正常

chrome 访问 blog.com blog.com/* 都正常

为什么访问www.blog.com 就直接下载index.php
只在chrome 下有这问题