alibabamama 发表于 2015-11-14 00:50:34

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

出现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>
页: [1]
查看完整版本: apache伪静态出现404 not found及You don't have permission to access / on this server.的解