我使用这里指令安装了头脑触摸,它似乎破坏了虚拟主机的配置。我有几个域运行在同一个apache实例上,而且运行良好,但是现在我所有的域名都解析到了安装mindtouch的虚拟主机上。所以正念触摸让我所有的域名指向新的正念触摸实例。哦!
我使用debians默认的虚拟主机机制(站点启用等)。有谁知道apache指令mindtouch是用来破坏我的vh设置的吗?我已经浏览了所有的conf文件,在apache2.conf或httpd.conf中没有任何明显的东西会导致这种行为。它是否在某个我应该摧毁的地方创建了一个系统链接?
我应该补充一下,我已经卸载了mindtouch包,但是apache坚持将所有域重定向到支持站点的文件夹中提到的第一个域。
thini:~# apache2ctl -S
[Wed Jan 05 13:39:11 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:* www.openancestry.org (/etc/apache2/sites-enabled/openancestry.org:1)
*:* www.pragmantra.com (/etc/apache2/sites-enabled/pragmantra.com:1)
*:* services.pragmantra.com (/etc/apache2/sites-enabled/services.pragmantra.com:1)
*:* www.subversionreports.com (/etc/apache2/sites-enabled/subversionreports.com:1)
*:* www.thijssen.ch (/etc/apache2/sites-enabled/thijssen.ch:1)
Syntax OK编辑:在完成Niall & DerfK建议的更正之后,我现在得到以下内容:
thini:/etc/apache2/sites-enabled# apache2ctl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server www.openancestry.org (/etc/apache2/sites-enabled/openancestry.org:1)
port 80 namevhost www.openancestry.org (/etc/apache2/sites-enabled/openancestry.org:1)
port 80 namevhost www.pragmantra.com (/etc/apache2/sites-enabled/pragmantra.com:1)
port 80 namevhost services.pragmantra.com (/etc/apache2/sites-enabled/services.pragmantra.com:1)
port 80 namevhost www.subversionreports.com (/etc/apache2/sites-enabled/subversionreports.com:1)
port 80 namevhost www.thijssen.ch (/etc/apache2/sites-enabled/thijssen.ch:1)
Syntax OK无论哪个文件是站点中的第一个,启用文件夹最终都会被视为“默认服务器”。就像禁用了命名的虚拟主机一样。
<VirtualHost _default_:80>DocumentRoot /var/www</VirtualHost>发布于 2011-01-05 13:51:00
第一个警告可能是答案。您已经将NameVirtualHost定义为*:80,但是根据定义每个虚拟主机的配置位上的<VirtualHost *:*>或类似的东西的外观,而不是<VirtualHost *:80>。
发布于 2011-01-05 20:34:52
@手榴弹--很抱歉听说你和MindTouch有问题。如果您按照wiki页面上的说明进行操作,那么始终可以尝试"a2dissite dekiwiki“和"a2ensite默认”来查看是否修复了它。MindTouch确实使用启用站点的符号链接来管理主机,但可能只是在第一个apache上有一个通配符。如果上面的话有帮助,请告诉我。
https://serverfault.com/questions/218961
复制相似问题