WAMP:设置虚拟主机不工作



我已经遵循了如何从许多网站设置WAMP (Apache 2.4.9)的VirtualHosts的说明,甚至遵循了forum.wampserver.com的一步一步,没有任何积极的结果。

这是我的文件修改列表:

司机Windows System32系统 等主机

127.0.0.1   localhost
127.0.0.1   local.ruta.com.ar
::1         localhost
::1         local.ruta.com.ar

apache2.4.9 conf httpd . conf

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

额外apache2.4.9 conf httpd-vhosts.conf

<VirtualHost *:80>
    ServerAdmin email@localhost
    DocumentRoot "c:/wamp/www"
    ServerName localhost
    <Directory "c:/wamp/www">
        AllowOverride All
        Options +Indexes
        Require local
    </Directory>
</VirtualHost>
<VirtualHost *:80>
    ServerAdmin email@ruta
    DocumentRoot "c:/wamp/www/ruta"
    ServerName local.ruta.com.ar
    ServerAlias www.local.ruta.com.ar
    ErrorLog "logs/ruta.log"
    CustomLog "logs/ruta-access.log" common
    <Directory "c:/wamp/www/ruta">
        AllowOverride All
        Options +Indexes
        Require local
    </Directory>
</VirtualHost>

我不知道还能做什么。对我来说一切似乎都很好,我检查了很多次,但我不能使它工作。我试着改变斜杠,在DirectoryDocumentRoot引号,删除一切,但DocumentRoot, ServerNameDirectory

请给我指出正确的方向:(提前感谢!

经过一个小时的共同排查,RiggsFolly终于解决了这个奇怪的问题。长话短说,PC正在尝试Teredo连接,这是一种过渡IPv6技术,由于它位于IPv4 NAT设备后面,因此失败。

他在SuperUser找到的解决方案(感谢Michael Hampton,无论你在哪里):

为什么Win7 SP7 64位尝试针对IPv6 DNS服务器解析DNS ? -迈克尔·汉普顿因此,由于Teredo是启用的,您的计算机认为它有IPv6连接,当连接实际上被破坏。(网络状态图标使用完全不同的连接检查)

要解决这个问题,请禁用Teredo(当您使用它时,请使用另外两个有问题的,6to4和ISATAP)。右键单击Command提示并单击以管理员身份运行,然后运行以下命令:

netsh int ipv6 isatap set state disabled
netsh int ipv6 6to4 set state disabled
netsh int teredo set state disabled

然后重新启动计算机。

最新更新