ホームページ  >  記事  >  バックエンド開発  >  Mac システムでは、ホームページ以外の php プロジェクトにはアクセスできません。

Mac システムでは、ホームページ以外の php プロジェクトにはアクセスできません。

little bottle
little bottle転載
2019-04-17 13:57:482136ブラウズ

一部のネチズンは、Mac での Apache の設定に問題があると報告しました。ホームページ以外にはアクセスできませんでした。編集者は関連する解決策を見つけました。困っている友達が来て調べてくれます。

  1. mod_rewrite.so モジュールは httpd.conf 構成ファイルにロードされます

  2. AllowOverride None Change None to 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&#39;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>

[推奨チュートリアル: php プログラミングの入門から完全なビデオ チュートリアルの習得まで ]

以上がMac システムでは、ホームページ以外の php プロジェクトにはアクセスできません。の詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

声明:
この記事はcnblogs.comで複製されています。侵害がある場合は、admin@php.cn までご連絡ください。