VPS侦探论坛

 找回密码
 注册
查看: 3632|回复: 1

军哥帮忙看看是不是配置错了 500

[复制链接]
发表于 2015-12-31 19:09:00 | 显示全部楼层 |阅读模式

okaybt.com 显示500但是输入 okaybt.com/index.php就没问题




server
    {
        listen 80;
        #listen [::]:80;
        server_name www.okaybt.com okaybt.com;
        index index.html index.htm index.php default.html default.htm default.php;
        root  /home/wwwroot/www.okaybt.com;

        include other.conf;
        #error_page   404   /404.html;
        location ~ [^/]\.php(/|$)
        {
            # comment try_files $uri =404; to enable pathinfo
            try_files $uri =404;
            fastcgi_pass  unix:/tmp/php-cgi.sock;
            fastcgi_index index.php;
            include fastcgi.conf;
            #include pathinfo.conf;
        }

        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
            expires      30d;
        }

        location ~ .*\.(js|css)?$
        {
            expires      12h;
        }

        location /{
                include /home/wwwroot/www.okaybt.com/.htaccess1;
        }
       

        access_log  /home/wwwlogs/www.okaybt.com.log  access;
    }


.htaccess1下我写的是
  1. # nginx rewrite  rule
  2. rewrite ^(.*)$ $1/?$1 last;
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-12-31 21:55:16 | 显示全部楼层


可能伪静态导致的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-28 17:23 , Processed in 0.025468 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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