美文网首页
如何让 Apache 支持多个 vhost

如何让 Apache 支持多个 vhost

作者: xiaojianxu | 来源:发表于2017-03-27 16:58 被阅读67次

httpd -t ,测试结果如下:

[warn] _default_ VirtualHost overlap on port 80, the first has precedence

原因是: httpd.conf 中,没有把对应的 name host 开启,如下所示。只需把 Line 1000 中的 # 去掉即可。

  998 # Use name-based virtual hosting.
  999 #
  1000 # NameVirtualHost *:80

相关文章

网友评论

      本文标题:如何让 Apache 支持多个 vhost

      本文链接:https://www.haomeiwen.com/subject/gsofottx.html