最近、仮想ホストを作成するために httpd-vhosts ファイルにいくつかの変更を加えました。その後、ワンプ アイコンのステータスは緑色にならず、オレンジ色のままになります。TEST PORT80 を介して実行された場合、他の http プログラムをチェックしましたが、実行するプログラムが見つかりませんでした。仮想ホストの設定時に何か間違いがあるのではないかと思います。以下は、ワンプが機能しなくなる前に私が試したことです。構成が正しいか間違っているか教えてください。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