听说Apache2.4x版本改进了很多,具体也没研究,但是把自己的Apache2.2升级到2.4的时候,虚拟主机一直403.把我以前的配置文件直接复制过去都这样,百度都是TM的没用的。。。不过我还是找到了。哈!
1<VirtualHost 127.0.0.1:80> 2 ServerName mypro 3 ServerAlias mypro 4 DocumentRoot "d:/mypro" 5 DirectoryIndex index.html index.php 6</VirtualHost> 7<Directory "d:/mypro"> 8 Options Indexes FollowSymLinks Includes ExecCGI 9 AllowOverride All 10 Require all granted 11</Directory>
我把我的帖出来,看有没有人用到。
Require all granted
这个就是2.4新加的,。。。。睡觉去!半夜起来写代码!