PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Apache soll keine Verzeichnisse anzeigen



spooky_dizzy
08.11.04, 17:29
Hallo,

ich habe mal die folgende Frage:

Wo in aller Hergotts Namen kann ich in der httpd.conf dem Apachen beibringen, daß er keine Verzeichnisse anzeigen soll??????? :(

D.h.: Momentan wird mir der Inhalt eines Verzeichnisses angezeigt, wenn ich es per Browser aufrufe. Genau das möchte ich aber nicht :(

Welchen der 'zig Tags muß ich ändern - bzw. - wo muß ich einen neuen einfügen, damit ein - bzw mehrere Verzeichnisse 'xyz' nicht angezeigt werden?


Ich freue mich über jeden Rat

mfg. - dizzy

Tomek
08.11.04, 18:35
Siehe http://httpd.apache.org/docs/mod/core.html#options

Indexes
If a URL which maps to a directory is requested, and the there is no DirectoryIndex (e.g., index.html) in that directory, then the server will return a formatted listing of the directory.

horace
08.11.04, 18:35
Hi!

Welche Version von Apache setzt du denn ein?

Such mal die httpd.conf durch, da müsste bei Options (vielleicht auch an mehreren Stellen) Indexes stehen. Lösche das mal weg, bzw. kommentiere die ursprüngliche Zeile aus und setz ne neue drunter, so z.B.

# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
# Options Indexes FollowSymLinks
Options FollowSymLinks

Gruß,
Hendrik

crazygeek
08.11.04, 18:38
Bei Options in deiner httpd.conf den Punkt Indexes rausnehmen dann passts ;)

spooky_dizzy
08.11.04, 19:02
.... arhg! :( .... Mist! ... hab was übersehen *gg*


Vielen Dank erst mal für die Tipps - ich hatte schon zuvor überall hinter Options jegliches "Indexes"-Vorkommen 'ausgelöscht' *hehe* :ugly: ... aber ich habe ganz übersehen, daß ich ja ein Verzeichnis anspreche, das der Apache (Apache 1) eigentlich nur aufgrund von JKMount kennt

JkMount /Verzeichnis ajp13
JkMount /Verzeichnis/* ajp13

- also der Tomcat ajp13 eigentlich alles anzeigt - und nicht der Apache ... uuuaahhhhh - ich hasse endlose Conf-Dateien, wo man die Hälfte übersieht *gg* :confused:


hmmm ... weiß jemand rein zufällig, wo man den ganzen Krempel nun beim Tomcat ausknippst? - In der web.xml der Applikation - oder global - oder evtl. in der Server.xml?


mfg - - dizzy :)