首頁  >  文章  >  後端開發  >  mac系統下php專案除了首頁全訪問不了

mac系統下php專案除了首頁全訪問不了

little bottle
little bottle轉載
2019-04-17 13:57:482050瀏覽

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

  1. httpd.conf設定檔中載入了mod_rewrite.so模組

  2. AllowOverride None 將None改為All


#
DocumentRoot "/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

 【推薦教學:php程式設計從入門到精通全套影片教學

以上是mac系統下php專案除了首頁全訪問不了的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文轉載於:cnblogs.com。如有侵權,請聯絡admin@php.cn刪除