2012-04-11 5 views
-1

Ich habe gerade meinen Ubuntu veralteten Entwicklungsserver aktualisiert, und er hat einige Konfigurationen abgebrochen. Jetzt Apache/PHP nicht richtig umgehen URLs wie index.php/profile, aber wird nur index.php korrekt behandeln.Apache-Konfiguration nach Softwareupdate defekt

Grundsätzlich, wenn es einen Pfad nach index.php gibt, dann wird 404 Fehler zurückgegeben: Die angeforderte URL /index.php/profile wurde nicht auf diesem Server gefunden.

Welche Konfigurationsoption wird dieses Problem wahrscheinlich beheben? Ich muss das dringend beheben. Danke im Voraus!

Antwort

1

Überprüfen Sie die Einstellung von 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

Ja, das ist genau das, was ich suchte, vielen Dank! –