2012-04-11 22 views
-1

私のUbuntuの旧バージョンの開発サーバーが更新されましたが、いくつかの設定が破損しました。 apache/phpはindex.php/profileのようなURLを正しく処理しませんが、正しく処理するのはちょうどindex.phpです。ソフトウェアのアップデート後にApacheの設定が破損しました

index.phpの後にパスがあると、404エラーが返されます。 要求されたURL /index.php/profileがこのサーバーに見つかりませんでした。

どのような設定オプションがこの問題を解決する可能性がありますか?私はこれを緊急に解決する必要があります。前もって感謝します!

答えて

1

AcceptPathInfoの設定を確認してください:

This directive controls whether requests that contain trailing pathname information that follows an actual filename (or non-existent file in an existing directory) will be accepted or rejected. The trailing pathname information can be made available to scripts in the PATH_INFO environment variable.

For example, assume the location /test/ points to a directory that contains only the single file here.html. Then requests for /test/here.html/more and /test/nothere.html/more both collect /more as PATH_INFO.

+0

うん、これは、私が探していただけで何のおかげでたくさんです! –

関連する問題