PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Apache: / - URL - Problem



20.06.00, 15:07
Hi an alle,

ich habe bei SuSe 6.4 das Problem, wenn ich auf 192.168.1.1/test zugreife wird die Website nicht gefunden.
Unter 192.168.1.1/test/ ist sie aber abrufbar.

Gibt es hierfür einen Konfigparameter ?
Gruß
- Thomas

23.06.00, 09:24
Falls es jemanden interessiert:

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.

http://www.apache.org/docs/misc/FAQ.html#set-servername