Apache WAMP中其他端口上的虚拟主机不工作

Apache WAMP中其他端口上的虚拟主机不工作,apache,virtualhost,wampserver,Apache,Virtualhost,Wampserver,我正在尝试使用wamp设置虚拟主机。我从这里得到了指示 这就是我如何将目录VirtualHost代码添加到apache`httpd-vhosts.conf文件中的方法 <Directory C:/Users/myName/projects> Order Deny,Allow Allow from all </Directory> <VirtualHost *:8000> DocumentRoot "C:/Users/my

我正在尝试使用wamp设置虚拟主机。我从这里得到了指示

这就是我如何将目录VirtualHost代码添加到apache`httpd-vhosts.conf文件中的方法

<Directory C:/Users/myName/projects>
    Order Deny,Allow   
    Allow from all 
</Directory>

<VirtualHost *:8000>   
    DocumentRoot "C:/Users/myName/projects/myFirst" 
    ServerName mysite.local 
</VirtualHost>

谁能告诉我这有什么问题吗

到底是怎么回事?您是否正在收听相关的IP和端口组合?你想要基于名称的虚拟主机吗?@lvaroG.Vicario,这是我在httpd.conf中更改的内容-Listen 12.34.56.78:80 Listen 0.0.0:8000 Listen[::0]:8000@lvaroG.Vicario,我不知道你问了什么基于名称的虚拟主机,或者你希望每个站点按照问题标题所述加载到不同的端口,还是按照链接教程所解释的通过不同的名称加载?这不是世界上最好的教程。有关详细信息,请参阅此帖子
[Mon Oct 26 17:48:12.935427 2015] [mpm_winnt:notice] [pid 5432:tid 384] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Mon Oct 26 17:48:15.196556 2015] [mpm_winnt:notice] [pid 3344:tid 308] AH00364: Child: All worker threads have exited.
[Mon Oct 26 17:48:18.216729 2015] [mpm_winnt:notice] [pid 5432:tid 384] AH00430: Parent: Child process 3344 exited successfully.
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does not exist
[Mon Oct 26 17:48:31.249474 2015] [mpm_winnt:notice] [pid 3556:tid 400] AH00455: Apache/2.4.9 (Win32) PHP/5.5.12 configured -- resuming normal operations

[Mon Oct 26 17:48:31.249474 2015] [mpm_winnt:notice] [pid 3556:tid 400] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:13:13
[Mon Oct 26 17:48:31.249474 2015] [core:notice] [pid 3556:tid 400] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Mon Oct 26 17:48:31.252474 2015] [mpm_winnt:notice] [pid 3556:tid 400] AH00418: Parent: Created child process 3744
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does not exist
[Mon Oct 26 17:48:32.228530 2015] [mpm_winnt:notice] [pid 3744:tid 324] AH00354: Child: Starting 64 worker threads.