新绑定域名无法访问文件
重启 : /root/lnmp reload错误:# /root/lnmp reload
=========================================================================
Manager for LNMP V0.6,Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org
Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Reload LNMP...
Reload Nginx configure...
: conflicting server name "my.kkk.com" on 0.0.0.0:80, ignored
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
Nginx program is reloding!
SUCCESS! Reloading service MySQL
Reload service php-fpmdone
绑定域名my.kkk.com 然后FTP上传探针p.php 也无法访问,提示:403 Forbidden
/usr/local/nginx/conf/vhost/ 里的绑定文件内容,开始 server内ROOT行不是绝对路径,后来我修改为root/home/wwwroot/my.kkk.com;
然后重启VPS 但是还是无法访问。
回复 1# 的帖子
my.kkk.com 这个域名可能已经绑定了。 对啊,这个域名是绑定到wwwroot目录的,安装lnmp的时候就绑定的,要怎么做了。 my.kkk.com 域名无法访问原来是没有在WWW组,请问添加绑定域名的时候vhost.sh 不会自动把绑定的目录加入WWW组吗,要怎么做才能是默认到WWW组。我是手动用WinSCP 把这目录设置为WWW组的。
回复 4# 的帖子
修改安装时绑定的域名:修改/usr/local/nginx/conf/nginx.conf修改权限
chown www:www -R 目录
chmod 777 -R 目录
回复 5# 的帖子
不太明白,我意思是vhost.sh 绑定后目录默认都是无法WEB访问的,必须重新设置为WWW组,是不是都要这样做,但是教程里好像没有这步。回复 6# 的帖子
vhost.sh添加的都是自动设置好了的。 安装lnmp的时候就绑定的 域名在/usr/local/nginx/conf/nginx.conf 里配置好了不用另外再运行 vhost 重新增加一个域名配置文件了 /usr/local/nginx/conf/vhost/my.kkk.com.conf
页:
[1]