2012-04-11 2 views
-1

우분투의 오래된 개발 서버를 업데이트 한 후 일부 구성이 중단되었습니다. 이제 apache/php가 index.php/profile과 같은 URL을 제대로 처리하지 못하지만 정확하게 처리 할 수있는 것은 index.php입니다.소프트웨어 업데이트 후 아파치 설정이 깨졌습니다.

기본적으로 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

네, 이것은 내가 많은 덕분에, 찾고 있던 바로 것입니다! –

관련 문제