Apache配置访问资源目录

httpd.conf文件:

Listen 80

改为:

Listen 8888

监听本机8888端口

DocumentRoot "D:/Apache2.2/htdocs"

改为:

DocumentRoot "D:/Temp"

映射到本机D/Temp目录

<Directory />
 Options FollowSymLinks
 AllowOverride None
 Order deny,allow
 Deny from all
</Directory>

改为:

<Directory />
 Options FollowSymLinks
 AllowOverride None
 Order deny,allow
 Allow from all
</Directory>

允许所有的访问

重启Apache

原文地址:https://www.cnblogs.com/vaer/p/4024976.html