多目录梆定二级域名 重启nginx梆定失败
#listen [::]:80;server_name www.test1.com test1.com m.test1.com;
index index.php index.htm index.html default.html default.htm default.php;
root/home/www/test1.com;
include ffcms.conf;
#error_page 404 /404.html;
include enable-php.conf;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /\.
{
deny all;
}
access_log off;
}
server
{
listen 80;
#listen [::]:80;
server_name www.mmm.test1.com mmm.test1.com mmm.test1.com;
index index.php index.htm index.html default.html default.htm default.php;
root/home/www/mmm.test1.com;
include ffcms.conf;
#error_page 404 /404.html;
include enable-php.conf;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /\.
{
deny all;
}
access_log off;
}
以上是部份配置文件,梆定二级域名大概有十个左右,打开网站跳到 恭喜您,LNMP一键安装包安装成功!这个页面 nginx -t 返回什么信息,出现lnmp默认界面肯定是nginx的配置文件没生效
页:
[1]