Christoph Schnauß: Probleme beim Verzeichnis-Aufruf

Beitrag lesen

hallo Alex,

Beim Aufruf von http://domain/verzeichnis bekomme ich ein 404 angezeigt
Bei einem Aufruf von http://domain/verzeichnis/ wird hingegen die Seite korrekt angezeigt

Du mußt dir mal die Apache-Dokumentation anschauen. Irgendwo hast du das mit den abschließenden Slashes in deiner httpd.conf bei der Vergabe der Aliasnamen (oder bei der Konfiguration deiner virtuellen hosts) falsch gemacht. In den Kommentaren der httpd.conf steht ausdrücklich:

Note that if you include a trailing / on fakename then the server will

require it to be present in the URL.  So "/icons" isn't aliased in this

example, only "/icons/".  If the fakename is slash-terminated, then the

realname must also be slash terminated, and if the fakename omits the

trailing slash, the realname must also omit it.

Grüße aus Berlin

Christoph S.