Apache2.4 搭建虚拟主机的过程中,开启了主配虚拟扩展和localhost:80
虚拟主机搭建如下
ServerName www.test.com
DocumentRoot "E:/PHP"
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
在host文件中加上了 127.0.0.1 www.test.com
此时能通过域名访问,但是127.0.0.1不可以。显示403,查询error.log显示
AH01630: client denied by server configuration: D:/Phpapache/Apache24/htdocs/
采用的是2.4的新的语法设置权限,遂将httpd.conf里面
AllowOverride none
Require all denied
#AllowOverride All
#Require all granted
修改为下方注释,127.0.0.1会访问到 目录中的htdocs中的index.html
多次尝试,将 * 改成127.0.0.1可以实现互相
访问。但是查询的资料在配置中几乎都是用的 * :80 请问有大神帮忙解释下为什么 * :80
不可以.