现在的位置: 首页 > 综合 > 正文

apache伪静态出现404 not found及You don’t have permission to access / on this server.的解决办法

2013年12月15日 ⁄ 综合 ⁄ 共 425字 ⁄ 字号 评论关闭

出现404 not found 时:
确保LoadModule rewrite_module modules/mod_rewrite.so开启
然后<Directory />
    Options FollowSymLinks
    AllowOverride none  把none 改成All
    Order allow,deny
    deny from all
</Directory>
 
出现
You don't have permission to access / on this server
 
 
<Directory />
    Options FollowSymLinks
    AllowOverride none  把none 改成All
    Order allow,deny
    deny from all  把deny改成Allow
</Directory>
 
确保设置了默认首页
<IfModule dir_module>
DirectoryIndex index.html index.htm index.php
</IfModule>

抱歉!评论已关闭.