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

posted @ 2014-10-14 18:20  vaer  阅读(709)  评论(0编辑  收藏  举报