mac系統(tǒng)下php項目除了首頁全訪問不了是什么原因

有網(wǎng)友反映mac配置apache的有問題,除了首頁全都訪問不了,小編找來了相關的解決辦法,有需要的朋友可以來了解一下。

從網(wǎng)站建設到定制行業(yè)解決方案,為提供成都網(wǎng)站設計、成都網(wǎng)站制作服務體系,各種行業(yè)企業(yè)客戶提供網(wǎng)站建設解決方案,助力業(yè)務快速發(fā)展。成都創(chuàng)新互聯(lián)公司將不斷加快創(chuàng)新步伐,提供優(yōu)質的建站服務。

  1. httpd.conf配置文件中加載了mod_rewrite.so模塊

  2. AllowOverride None 將None改為 All

DocumentRoot "/Library/WebServer/Documents"
<Directory "/Library/WebServer/Documents">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options FollowSymLinks Multiviews
    MultiviewsMatch Any
  #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   AllowOverride FileInfo AuthConfig Limit
    #
    #AllowOverride None
     AllowOverride All         #這里這里!!!
     Order deny,allow
     Allow from all
    #
    # Controls who can get stuff from this server.
    #
    Require all granted
</Directory>

以上就是mac系統(tǒng)下php項目除了首頁全訪問不了的詳細內容,更多請關注創(chuàng)新互聯(lián)其它相關文章!

文章標題:mac系統(tǒng)下php項目除了首頁全訪問不了是什么原因
轉載注明:http://muchs.cn/article0/ppjeoo.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站設計動態(tài)網(wǎng)站、外貿建站網(wǎng)站導航、品牌網(wǎng)站制作靜態(tài)網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經(jīng)允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設