VPS侦探论坛

 找回密码
 注册
查看: 9039|回复: 7

新绑定域名无法访问文件

[复制链接]
发表于 2011-2-21 12:56:20 | 显示全部楼层 |阅读模式

重启 : /root/lnmp reload错误:
[root@ffxk ~]# /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...
[warn]: 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-fpm  done




绑定域名my.kkk.com 然后FTP上传探针p.php 也无法访问,提示:403 Forbidden
/usr/local/nginx/conf/vhost/ 里的绑定文件内容,开始 server内ROOT行不是绝对路径,后来我修改为
root  /home/wwwroot/my.kkk.com;


然后重启VPS 但是还是无法访问。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-2-21 13:16:29 | 显示全部楼层

回复 1# 的帖子



my.kkk.com 这个域名可能已经绑定了。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-2-21 13:52:01 | 显示全部楼层

对啊,这个域名是绑定到wwwroot目录的,安装lnmp的时候就绑定的,要怎么做了。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-2-21 14:17:38 | 显示全部楼层



my.kkk.com 域名无法访问原来是没有在WWW组,请问添加绑定域名的时候vhost.sh 不会自动把绑定的目录加入WWW组吗,要怎么做才能是默认到WWW组。

我是手动用WinSCP 把这目录设置为WWW组的。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-2-21 15:24:21 | 显示全部楼层

回复 4# 的帖子


修改安装时绑定的域名:修改/usr/local/nginx/conf/nginx.conf

修改权限
chown www:www -R 目录
chmod 777 -R 目录

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2011-2-21 16:32:03 | 显示全部楼层

回复 5# 的帖子


不太明白,我意思是vhost.sh 绑定后目录默认都是无法WEB访问的,必须重新设置为WWW组,是不是都要这样做,但是教程里好像没有这步。
发表于 2011-2-21 19:25:11 | 显示全部楼层

回复 6# 的帖子


vhost.sh添加的都是自动设置好了的。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-2-22 18:09:34 | 显示全部楼层

安装lnmp的时候就绑定的 域名在/usr/local/nginx/conf/nginx.conf 里配置好了
不用另外再运行 vhost 重新增加一个域名配置文件了 /usr/local/nginx/conf/vhost/my.kkk.com.conf
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-19 08:51 , Processed in 0.027792 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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