这是一个谜。我创建了第二个 VH 来与 WAMP 一起使用。
<VirtualHost *:80>
ServerName dev.sitetest.com
ServerAlias dev.sitetest.com
DocumentRoot "${INSTALL_DIR}/www/client/sitetest/web/"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
我的主机文件如下所示:
127.0.0.1 dev.sitetest.com
::1 dev.sitetest.com
现在,我重新启动了 WAMP 服务器,图标是绿色的,我没有使用 Skype,我的其他 VH 运行良好(它是 dev.stuff.com 类型的 URL)。我已将其他 VH 行复制到 httpd-vhosts.conf 和 hosts 文件。
如果我在浏览器中尝试 dev.sitetest.com,我会收到“无法访问此站点,dev.vestamtl.com 拒绝连接。”的错误。
如果我尝试 localhost/client/sitetest/,我会看到项目根目录中的所有文件和文件夹。
我的设置:
Apache/2.4.39 (Win64) OpenSSL/1.1.1b PHP/7.2.18 Server at localhost Port 80
这是我上次重启后的 Apache_error.log 文件:
[Wed Jul 10 16:50:03.642285 2019] [mpm_winnt:notice] [pid 14936:tid 648] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Wed Jul 10 16:50:05.673050 2019] [mpm_winnt:notice] [pid 13348:tid 580] AH00364: Child: All worker threads have exited.
[Wed Jul 10 16:50:05.704294 2019] [mpm_winnt:notice] [pid 14936:tid 648] AH00430: Parent: Child process 13348 exited successfully.
[Wed Jul 10 16:50:08.281814 2019] [ssl:warn] [pid 9536:tid 648] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Jul 10 16:50:08.328677 2019] [mpm_winnt:notice] [pid 9536:tid 648] AH00455: Apache/2.4.39 (Win64) OpenSSL/1.1.1b PHP/7.2.18 configured -- resuming normal operations
[Wed Jul 10 16:50:08.328677 2019] [mpm_winnt:notice] [pid 9536:tid 648] AH00456: Apache Lounge VC15 Server built: Mar 28 2019 11:59:33
[Wed Jul 10 16:50:08.328677 2019] [core:notice] [pid 9536:tid 648] AH00094: Command line: 'c:\\wamp64\\bin\\apache\\apache2.4.39\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.39'
[Wed Jul 10 16:50:08.328677 2019] [mpm_winnt:notice] [pid 9536:tid 648] AH00418: Parent: Created child process 3104
[Wed Jul 10 16:50:09.250367 2019] [ssl:warn] [pid 3104:tid 576] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Jul 10 16:50:09.297200 2019] [mpm_winnt:notice] [pid 3104:tid 576] AH00354: Child: Starting 64 worker threads.
我遗漏了什么?帮帮忙。