VPS侦探论坛

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

TP5+lnmp1.4+nginx下访问一片空白的问题

[复制链接]
发表于 2017-7-2 09:46:07 | 显示全部楼层 |阅读模式

server
    {
        listen 80;
        #listen [::]:80;
        server_name www.XXXXX.com c.gXXXXg.com;
        index index.html index.htm index.php default.html default.htm default.php;
        root  /home/wwwroot/defaults/public;

        include other.conf;
        #error_page   404   /404.html;
        location / {
            index  index.html index.htm index.php;
            #autoindex  on;
                        if (!-e $request_filename) {
                        rewrite ^(.*)$ /index.php?s=/$1 last;
                        break;
                        }
                }
        # Deny access to PHP files in specific directory
        #location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }

        include enable-php-pathinfo.conf;

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

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

        location ~ /.well-known {
            allow all;
        }

        location ~ /\.
        {
            deny all;
        }

        access_log  /home/wwwlogs/d.log.log;
    }
~

以上是TP5配置虚拟主机后,访问时一片空白,大家帮我看下配置文件 哪里错了么?谢谢哈
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-7-2 11:25:46 | 显示全部楼层


没有错误信息没法说,按常见问题开php错误日志看看
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-25 21:23 , Processed in 0.025705 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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