我在Windows Server 2016中安装了wampserver 3.0.6,公共ip xxx.xxx.xx.xx
我已经对httpd.conf文件进行了更改,如下所示:
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +FollowSymLinks +Multiviews
AllowOverride all
# onlineoffline tag - don't remove
Require all granted
</Directory>
并在httpd-vhosts.conf文件中:
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/wamp64/www
<Directory "c:/wamp64/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
现在当我尝试通过从其他计算机输入“xxx.xxx.xx.xx”来访问localhost时,我没有收到回复。
在stackoverflow中多次询问此问题。但是这些解决方案没有奏效,所以我再次问这个问题。
有人可以弄清楚如何解决这个问题。
谢谢。