VPS侦探论坛

 找回密码
 注册
查看: 6299|回复: 4

绑定域名不成功是什么原因??还有VPS重启后网站就打不开了是什么原因?

[复制链接]
发表于 2012-3-24 07:59:24 | 显示全部楼层 |阅读模式

[root@yunxianren ~]# /root/vhost.sh
=========================================================================
Add Virtual Host for LNMP V0.8  ,  Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to add virtual host for nginx
For more information please visit http://www.lnmp.org/


=========================================================================
Please input domain:
(Default domain: www.lnmp.org):www.yunxianren.com
===========================
www.yunxianren.com is exist!
===========================
Do you want to add more domain name? (y/n)
y
Type domainname,example(bbs.vpser.net forums.vpser.net luntan.vpser.net):
yunxianren.com
===========================
domain list=yunxianren.com
===========================
Please input the directory for the domain:www.yunxianren.com :
(Default directory: /home/wwwroot/www.yunxianren.com):
===========================
Virtual Host Directory=/home/wwwroot/www.yunxianren.com
===========================
===========================
Allow Rewrite rule? (y/n)
===========================
n
===========================
You choose rewrite=none
===========================
===========================
Allow access_log? (y/n)
===========================
n


Press any key to start create virtul host...
Create Virtul Host directory......
set permissions of Virtual Host directory......
You select the exist rewrite rule:/usr/local/nginx/conf/none.conf
Test Nginx configure file......
nginx: [emerg] invalid number of arguments in "include" directive in /usr/local/nginx/conf/vhost/=========================================================================.conf:8
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed


Restart Nginx......
nginx: [emerg] invalid number of arguments in "include" directive in /usr/local/nginx/conf/vhost/=========================================================================.conf:8
=========================================================================
Add Virtual Host for LNMP V0.8  ,  Written by Licess
=========================================================================
For more information please visit http://www.lnmp.org/


Your domain:www.yunxianren.com
Directory of www.yunxianren.com:/home/wwwroot/www.yunxianren.com


=========================================================================
[root@yunxianren ~]#

[ 本帖最后由 syewcom 于 2012-3-24 08:56 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-3-24 08:22:48 | 显示全部楼层


给出的信息不完整,但是可以看出配置文件肯定有错误信息
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-3-24 08:51:18 | 显示全部楼层

我不太懂,看不懂是什么问题


server
        {
                listen       80;
                server_name www.yunxianren.com yunxianren.com;
                index index.html index.htm index.php default.html default.htm default.php;
                root  /home/wwwroot/www.yunxianren.com;

                include none.conf;
                location ~ .*\.(php|php5)?$
                        {
                                fastcgi_pass  unix:/tmp/php-cgi.sock;
                                fastcgi_index index.php;
                                include fcgi.conf;
                        }

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

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

                access_log off;
        }
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-3-24 08:51:40 | 显示全部楼层



这个配置文件不是自动生成的吗?怎么会有错呢
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-3-24 11:02:45 | 显示全部楼层

/usr/local/nginx/sbin/nginx -t 发错误信息

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

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-22 15:49 , Processed in 0.026008 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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