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>

你可能感兴趣的:(apache,Module,Access)