我正在使用 Wampserver 3.0.4有 Apache 2.4.18 - PHP 5.6.19 - MySQL 5.7.11
因为我正在使用wampserver> = 3。所以我按照给出的所有步骤进行了操作 WAMP Cannot access on local network 403 Forbidden。 但即使在进行更改后,我也无法从其他计算机访问服务器。 以下是我的 httpd-vhosts.conf
的内容#
# Virtual Hosts
#
<VirtualHost *:8000>
ServerName localhost
DocumentRoot c:/wamp64/www
<Directory "c:/wamp64/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
httpd.exe -S输出:
VirtualHost configuration: *:8000 localhost (C:/wamp64/bin/apache/apache2.4.18/conf/extra/httpd-vhosts.conf:5)
ServerRoot: "C:/wamp64/bin/apache/apache2.4.18"
Main DocumentRoot: "C:/wamp64/www"
Main ErrorLog: "C:/wamp64/logs/apache_error.log"
Mutex default: dir="C:/wamp64/bin/apache/apache2.4.18/logs/" mechanism=default
Mutex authdigest-opaque: using_defaults
Mutex rewrite-map: using_defaults
Mutex authdigest-client: using_defaults
PidFile: "C:/wamp64/bin/apache/apache2.4.18/logs/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
Define: APACHE24=Apache2.4
这是http.conf文件。