Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
WAMPからXAMPPに切り替えていますが、XAMPPでvhostが壊れています。それらへのアクセスは許可されません。
「要求されたディレクトリにアクセスする権限がありません。インデックスドキュメントがないか、ディレクトリが読み取り保護されています。」
Apacheエラーログには次のように書かれています。
「[エラー][クライアント127.0.0.1]クライアントがサーバー構成によって拒否されました」
Vhostを機能させるためにXAMPPが設定しないWAMPは何を設定しますか?
いくつかの考えられる理由:
<Directory>そのファイルツリーへのアクセスを許可するコンテナがありません。
<Directory>
<Directory "C:/Foo/Bar/"> Order allow,deny Allow from all </Directory>
PHPを使用していますがindex.php、ディレクトリインデックスとして定義されていません。
index.php
DirectoryIndex index.php
ディレクトリは読み取り保護されています