Page 1 of 1

allow indexes for one directory

Posted: Fri Aug 05, 2005 1:38 am
by Bangas
I was wondering how to allow (if possible) indexes for just one directory?
Or is it allow for all, or none?
I am running apache 2.0 on win32 XP.

Thanks.

Posted: Fri Aug 05, 2005 2:02 am
by gesf

Code: Select all

<Directory "/directory_you_want_the_index">
     Options Indexes
</Directory>
Or in your case:

Code: Select all

"\directory_you_want_the_index"
:)

Posted: Fri Aug 05, 2005 5:30 am
by Alexej Kubarev
or simple .htaccess but in that case you will have to set AllowOverride in httpd.conf

no worky

Posted: Sun Aug 07, 2005 4:05 am
by Bangas
sorry guys, but that no worky.
I put it in under the place that says,

Code: Select all

# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features. 
#

Is this not the correct place?

Posted: Sun Aug 07, 2005 5:46 pm
by gesf
Can you post the code ? I don't have an httpd.conf in my head :)

Posted: Thu Aug 25, 2005 1:21 pm
by Alexej Kubarev
I agree: it pretty hard to keep httpd.conf inthe head... And it my case its httpd.conf, vhost.conf php.conf and modules.conf.. hehe. i needed to separate the whole file into smaller parts that i access all the time.. hehehe