VPS侦探论坛
标题:
TP5+lnmp1.4+nginx下访问一片空白的问题
[打印本页]
作者:
176490815
时间:
2017-7-2 09:46
标题:
TP5+lnmp1.4+nginx下访问一片空白的问题
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配置虚拟主机后,访问时一片空白,大家帮我看下配置文件 哪里错了么?谢谢哈
作者:
licess
时间:
2017-7-2 11:25
没有错误信息没法说,按常见问题开php错误日志看看
欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/)
Powered by Discuz! X3.4