在网站的域名后直接输入了一个 目录后 浏览提示我 You don't have permission to access on this server 这是目录权限的问题
在apache的配置文件里 conf/httpd.conf 里找到
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot E:/web/zdz/trunk
ServerName www.domain.com
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
首先要检查 目录是否正确,
然后在 Options 后面加了一个 Indexes
改成
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot E:/web/zdz/trunk
ServerName www.domain.com
<Directory "E:/web/zdz/trunk">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
就 OK 了