PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Apche-prob mit unterverzeichnissen



TuX]AR[
24.12.01, 00:00
hi leute.
ich habe einfach kein plan woran es liegen kann.hab mich da schon in das thema ein gelesen nur das problem finde ich niergends erklärt / beschrieben.
mein prob:
wenn ich eine http anfrage an den server starte mit nem unterverzeichniss dann muss umbedingt ein / zum abschluss stehen da er sonst das verzeichniss als file behanelt oder so
bsp.
http://server/test geht net http://server/test/ geht
hat einer plan oder weiss einer wo ich eine lösung zu dem prob finde ?!?!
vielen dank auch schon mal im vorraus

euer _TuX_]AR[

TuX]AR[
26.12.01, 18:23
hallo??
is da jemand??
hat noch niemand das problem gehabt oder wie?
oder weiss keiner wie es zu lösen is?
was is nur los?
die comunity is doch sonst so gut.
bitte kann mir einer antworten auch wenn es sowas is wie ich hab kein plan was da gemacht werden muss.
bin da total am verzweifeln :confused:
bye eur TuX

netzmeister
26.12.01, 18:38
Hallo,

siehe hier:

Apache mod_dir Doku (http://httpd.apache.org/docs/mod/mod_dir.html) und dann noch mod_autoindex (http://httpd.apache.org/docs/mod/mod_autoindex.html)

Installiere mod_autoindex dann klappt das!

Viele Grüsse,

Eicke

TuX]AR[
26.12.01, 20:31
danke schon mal für den Tip, wenigstens einer hat geantworte.
ich hab das mal gecheckt und bei mir sind beide module drin wobei nur das mod_dir für den kram wohl zuständig sein kann.
bringt mir leider nix, da es trotz dem geladenem modul immer noch nicht geht. ich versteh das einfach nicht:confused:
und sowas wie ne vonfig in der man das einstellen kann wie die
DirectoryIndex index.html
die ja vorhanden ist und wohl net der übeltäter sein kann.
ich wäre um hilfe sehr dankbar, da es doch schon ganz schön nervt
thnx euer TuX

netzmeister
26.12.01, 21:12
Hallo,

(lies mal bitte die Doku.)

Für die Lösung des "Problems" ist das mod_autoindex verantwortlich.

Das wird bei Deinem System nicht richtig installiert sein.

Viel Erfolg

Eicke

neobytes
27.12.01, 14:46
Hi,

Schau die mal die Apache FAQ an

Hier ein Auszug:

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.


- neobytes