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

| 阅读数:--次| 作者:小猪仔
摘要:如果你要调试虚拟主机配置,你会发现 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)

返回顶部
学到老代码浏览 关闭浏览