首页 > Linux

linux下命令检查apache虚拟主机配置

发表于2014-08-28 17:43:40| --次阅读| 来源webkfa| 作者小猪仔

摘要:如果你要调试虚拟主机配置,你会发现 Apache 的命令行参数 -S 非常有用。即输入以下命令:

bsh代码
/home/web/apache/bin/httpd -S

运行结果:

[root@css conf]# /home/web/apache/bin/httpd -S
VirtualHost configuration:
127.0.0.1:*            is a NameVirtualHost
         default server star.kuwo.cn (/home/web/apache/conf/kw_new.conf:28)
         port * namevhost star.kuwo.cn (/home/web/apache/conf/kw_new.conf:28)
         port * namevhost fang.kuwo.cn (/home/web/apache/conf/kw_new.conf:40)
         port * namevhost lyrics.kuwo.cn (/home/web/apache/conf/kw_new.conf:82)
         port * namevhost iting.kuwo.cn (/home/web/apache/conf/kw_new.conf:90)
         port * namevhost aiting.kuwo.cn (/home/web/apache/conf/kw_new.conf:105)
         port * namevhost tupian.kuwo.cn (/home/web/apache/conf/kw_new.conf:117)
         port * namevhost sprite.kuwo.cn (/home/web/apache/conf/kw_new.conf:137)
         port * namevhost kzone.kuwo.cn (/home/web/apache/conf/kw_new.conf:155)
         port * namevhost play.kuwo.cn (/home/web/apache/conf/kw_new.conf:355)
         port * namevhost i.kuwo.cn (/home/web/apache/conf/kw_new.conf:386)

相关文章

猜你喜欢

学到老在线代码浏览器 关闭浏览
友情链接: hao123 360导航 搜狗网址导航 114啦网址导航 博客大全
Copyright © 1999-2014, WEBKFA.COM, All Rights Reserved  京ICP备14034497号-1