![](https://seccdn.libravatar.org/avatar/1ba037e950bd0c23b31d0ed8f0687dfd.jpg?s=120&d=mm&r=g)
From: "Jörg Zimmermann"
Problem 1: Wenn jemand auf http://Server/~user1/ geht, so funktioniert die Seite. Besucht man jedoch http://Server/~user1 (also ohne folgendes Slash), so wird die Seite nicht gefunden. Dieses Problem habe ich schon einmal in der Liste geschildert und bekam die Antwort, daß es an der DNS-Konfiguration liegen würde. Wie muss ich diese Konfiguration ändern, daß es funktioniert?
Das hat nichts mit dem DNS zu tun. Du musst in der virtual host section nur folgenden Eintrag haben: 'ServerName www.DeineVirtualHostname.de'
Hallo Jörg, Ja, nein, sowohl als auch. :-) Meine Lösung ist richtig, deine aber auch. Ich zitiere aus dem Apache FAQ: ---- Kettensäge ---- Why does accessing directories only work when I include the trailing "/" (e.g., http://foo.domain.com/~user/) but not when I omit it (e.g., http://foo.domain.com/~user)? When you access a directory without a trailing "/", Apache needs to send what is called a redirect to the client to tell it to add the trailing slash. If it did not do so, relative URLs would not work properly. When it sends the redirect, it needs to know the name of the server so that it can include it in the redirect. There are two ways for Apache to find this out; either it can guess, or you can tell it. If your DNS is configured correctly, it can normally guess without any problems. If it is not, however, then you need to tell it. Add a ServerName directive to the config file to tell it what the domain name of the server is. ---- /Kettensäge ---- Ich bevorzuge die DNS-Lösung, weil sie dann nicht nur für Apache funktioniert, sondern alle Anfragen aller Programme korrekt auflöst. An Hans: Ich habe meine Kiste nicht hier, bin nicht wirklich fit in sowas, aber mal aus dem Kopf, ungetestet, Versuch: Wenn du z.B. eingibst: ping name_deines_servers dann gibt er dir deine IP-Adresse aus. Dafür gibt es auch die umgekehrte Richtung. Gib mal ein host x.x.x.x (Natürlich mit der IP-Adresse statt der x'e), und er sollte dir wieder den Namen ausspucken. Tut er das nicht, scheitert Apache in gleicher Weise. Das steht übrigens auch im Apache FAQ, das dir wärmsten ans Herz gelegt sei. :-) Wie du deinen DNS "ordentlich" konfigurierst, steht im DNS-HowTo, und das lege ich dir zum Apache-FAQ dazu. ;-) Stichwort: Reverse Lookups. Ich fand es auch etwas verwirrend, aber es geht schon. Gruß, Ratti