文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>VirtualHostsMixingPorts

VirtualHostsMixingPorts

时间:2007-07-11  来源:opbsder

If you get the following error when you attempt to start Apache, it is a warning to tell you that you have a misconfiguration of your httpd.conf

如果当你试图启动apache的时候,你得到了下面的错误,他告诉你,你对httpd.conf有误解。

VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results 
  1. You have no VirtualHosts  that match the NameVirtualHost directive.

  2. 你没有  VirtualHosts符合你在  NameVirtualHost directive中的设置

  3. You are mixing the use of *:80 with ones that do not use a port number.你混用了*:80 的使用,没有为你的一个主机配置端口号,

  4.  For example :

  5.  

NameVirtualHost *:80 NameVirtualHost * <VirtualHost *:80> DocumentRoot /var/www ServerName www.example.com ... </VirtualHost> <VirtualHost *> DocumentRoot /var/www ServerName www.example.org ... </VirtualHost> 

Fixing this is quite easy... Always set a port number for your virtual hosts. 在你的虚拟主机里总是配置端口号

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载