我在httpd.conf中这样设置的:
<Directory "D:\www\WebServer\Common"/>
    Options FollowSymLinks
    AllowOverride None
    Order deny,deny
    Allow from all
</Directory>
设置后我连D:\www下的文件也访问不了了。是什么原因啊,我只是想不允许common中的文件被访问

解决方案 »

  1.   

    还有一个问题,我做了目录D:\www\WebServer\Common下的访问权限的限制后,是不是Common中的文件也不能在其他页面引用了
      

  2.   

    解决了,还是我的权限没有设置好
    <Directory "D:\www\WebServer\Common"/>
      Options none
      AllowOverride None
      Order deny,deny
      Allow from all
    </Directory>
    Options 后面设置为none就好了
      

  3.   

    Order deny, deny不对,应该是这样<Directory "D:\www\WebServer\Common"/>
      Options FollowSymLinks
      AllowOverride None
      Order allow,deny
      Deny from all
    </Directory>
      

  4.   

    是的,刚试了下cunningboy 的设置才是对的