Entwickler-Ecke

Off Topic - bei apache ordner sperren wenn keine index ist


Bela Urlaub - Fr 21.11.03 19:44
Titel: bei apache ordner sperren wenn keine index ist
Hi, ich hab ne frag zu APACHE 1.3.28
Und zwar, wie kann ich das machen, wenn ich einen ordner hab, der keine index-datei hat (index.html, index.htm, index.php usw...), dass dann anstatt des aufgelisteten inhalts eher der error 403 (Forbidden!) kommt.
Wie geht das??


JoelH - Fr 21.11.03 19:57
Titel: hmm,
in meiner httpd.conf Datei findet sich folgendes =>

Quelltext
1:
2:
3:
4:
5:
6:
7:
8:

# Disable autoindex for the root directory, and present a
# default Welcome page if no other index page is present.
#
<LocationMatch "^/$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>

sollte das sein was du suchst !?

Oder dieser eintrag

Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the 
# same purpose, but it is much slower.
#
DirectoryIndex


Bela Urlaub - Fr 21.11.03 20:10

ne des sin se leida net


Bela Urlaub - So 23.11.03 00:33

Muss mich korrigiern, Jetzt gehts :)
Danke