安装完wampserver后,通过127.0.0.1或localhost访问网页可以正常访问;
但是通过其他电脑对服务器的公网ip地址进行访问,一直显示forbid....如图:
查阅博客帖子,发现这个问题常规的解决办法是修改httpd.conf中的两处配置。
我的解决过程是
先将
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
修改为
<Directory />
Options FollowSymLinks
AllowOverride none
Require all granted
</Directory>
接着将
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI Mu