最近我对 httpd-vhosts 文件进行了一些更改以创建虚拟主机。之后 wamp 图标状态不再变为绿色,因此保持橙色。如果已经通过 TEST PORT80 运行,我检查了其他 http 程序,但没有发现要运行的程序。我想当我为虚拟主机配置时可能会有一些错误。以下是我在 wamp 停止工作之前尝试过的方法。请告诉我所做的配置是否正确或不正确。请提出一些配置错误的 vhosts 文件的解决方案。
这是我在 httpd-vhosts 文件中包含的行
  <VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot "c:/wamp/www"
   ServerName tastingroom.com
  #ServerAlias www.dummy-host.example.com
   ErrorLog "logs/localhost-error.log"
   CustomLog "logs/localhost-access.log" common
 </VirtualHost>
 <VirtualHost *:80>
   ServerAdmin webmaster@dummy-host2.example.com
   DocumentRoot "c:\wamp\www"
   ServerName tastingroom.com
   ServerAlias www.tastingroom.com
   ErrorLog "logs/tastingroom-error.log"
   CustomLog "logs/tastingroom-access.log" common
 <directory "c:\wamp\www">
     Option Indexes FollowSymLinks
     AllowOerride all
     Order Deny,Allow
     Deny from all
     Allow from 127.0.0.1     
 </directory>
 </VirtualHost>
在 Windows 文件夹的 system32 内的“hosts”文件中
enter code here
127.0.0.1 localhost
127.0.0.1 tastingroom.com