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>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章