Verwijderd schreef op 15 June 2003 @ 17:26:
Weezer-DC:
Je kunt de Options directive ook binnen <VirtualHost> en </VirtualHost> gebruiken. Ook tussen <Directory> en </Directory> trouwens.
Options -Indexes zou moeten werken, als alle AllowOverride directives die van toepassing zijn dat toelaten.
Heb even zitten stoeien met apache, maar ik snap het niet
Zo hiet het deel van de conf eruit,
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "D:/HTTP/data">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# 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
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
En dan bij een virtual host waar ik niet wil dat er index wordt gemaakt,
van dirs zonder een index file,
<VirtualHost forum.stamcel.serveftp.org>
ServerAdmin administrator@weezer-dc.net
DocumentRoot "D:/HTTP/data/stamcel.serveftp.org/forum"
ServerName forum.stamcel.serveftp.org
Options -Indexes
ErrorLog D:/HTTP/logs/stamcel.serveftp.org/forum/error.txt
TransferLog D:/HTTP/logs/stamcel.serveftp.org/forum/transfer.txt
</VirtualHost>
Alleen dit werkt niet...
Het liefst zou ik zelfs willen dan er nooit een auto index wordt gemaakt,
alleen als ik het bij een paar specifieke host aangeef dat het wel moet,
moet het kunnen, dus ik kan deze mod niet uitschakelen.