为什么我在 "Your Virtual Hosts" 子菜单中输入的内容不包含主持人的全名?

Why does my entry in the "Your Virtual Hosts" submenu not contain the full name of the host?

我在 WAMP 服务器版本 3.0.6 上设置了一个新的虚拟主机,它的名称中包含一个点(特别是 bowla300.local)

我的 vhosts.conf 文件被配置为调用它 bowla300.local,我的主机文件也是如此。当我重新启动 WAMP 时,本地主机页面在“您的项目”和“您的虚拟主机”列中正确显示此名称,并且 links 按预期工作。到目前为止一切顺利...但是在主 WAMP 服务器的“您的虚拟主机”菜单上,服务器名称仅显示为 bowla300,末尾没有 .local,并且 link 不起作用。我不知道我需要改变什么来纠正这个问题。有可能我最初设置的网站名称不正确,没有“.local”,但后来重新访问 vhosts.conf 该名称现在绝对正确,而且它在 localhost 页面上显示正确的事实也表明它是有效的。为什么菜单项可能不包含“.local”?

我如下附上我的 vshosts 条目(我承认我确实进行了手工编辑,因为我刚刚注意到本地主机页面上的选项以这种方式创建虚拟主机):-

    <VirtualHost *:8080>
        ServerName localhost
        DocumentRoot c:/wamp64/www
        <Directory  "c:/wamp64/www/">
                Options +Indexes +Includes +FollowSymLinks +MultiViews
                AllowOverride All
                Require local
        </Directory>
    </VirtualHost>

    <VirtualHost *:8080>
        ServerName bowla300.local
        DocumentRoot "c:/wamp64/www/bowla300.local"
        <Directory  "c:/wamp64/www/bowla300.local/">
          Options Indexes FollowSymLinks
          AllowOverride All
          Require local
        </Directory>
    </VirtualHost>

干净重启后问题自行解决。重新启动 WAMP 还不够,但重新启动操作系统可以解决问题。