Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] linux nginx 默认首页问题 急!!!急!!

[复制链接]
gaofeigz 发表于 2012-10-29 14:59:58 | 显示全部楼层 |阅读模式
以下是我的配置文件,请问为什么打开网站时不加载默认的index.php,而是空白一片的,大家可以看下我的网站,http://www.yanyizixun.com/ 请问要如何解决,急!!!!
  1. server {
  2. listen 80;
  3. server_name www.yanyizixun.com bbs.yanyizixun.com yanyizixun.com;
  4. index index.php index.htm index.html;
  5. root /alidata/www/default;
  6. location ~ .*\.(php|php5)?$
  7. {
  8. #fastcgi_pass unix:/tmp/php-cgi.sock;
  9. fastcgi_pass 127.0.0.1:9000;
  10. fastcgi_index index.php;
  11. include fastcgi.conf;
  12. }
  13. location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  14. {
  15. expires 30d;
  16. }
  17. location ~ .*\.(js|css)?$
  18. {
  19. expires 1h;
  20. }
  21. #伪静态规则
  22. include /alidata/server/nginx/conf/rewrite/default.conf;
  23. log_format default '$remote_addr - $remote_user [$time_local] "$request" '
  24. '$status $body_bytes_sent "$http_referer" '
  25. '"$http_user_agent" "$http_x_forwarded_for"';
  26. access_log /alidata/log/nginx/access/default.log default;
  27. }
复制代码
 楼主| gaofeigz 发表于 2012-10-29 15:03:44 | 显示全部楼层
已经解决了,谢谢!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-5-17 17:53 , Processed in 0.108669 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表