Directory indexing on default

josko

New member
Joined
May 21, 2007
Messages
4
Hey guys.

Im trying to put on directory listing for all sites.
Some links here pointed me to change -Indexes to +Indexes.

I still can't list. So, i ask you:
How to do this?

DocumentRoot "/var/www/html"

<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>

<Directory "/var/www/html">

Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>

AddHandler cgi-script .cgi .pl
<IfModule mod_userdir.c>
#UserDir public_html
UserDir disabled
</IfModule>

<Directory /home/*>
AllowOverride All
Options -MultiViews +Indexes FollowSymlinks IncludesNoExec +Includes
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
 
check the httpd.conf file for each site, which will be included
into this config file. most probable these will have:

Options +Includes -Indexes

already set for each as default.
 
check the httpd.conf file for each site, which will be included
into this config file. most probable these will have:

Options +Includes -Indexes

already set for each as default.

Now you said it, i noticed those includes.

Okaj, but now:

Howto configure it so that it automaticly takes a +Indexes on a new user, when you make it?
 
cp /usr/local/directadmin/data/templates/virtual_host.conf /usr/local/directadmin/data/templates/custom/virtual_host.conf

if you're using apache 1.3, and edit the copy in the custom directory

if you're using apache 2, then I believe the file to copy/edit
would be virtual_host2.conf
 
i've said it before, but i'll say it yet again, maybe someday it'll happen.

currently, DA looks in

/usr/local/directadmin/data/templates/custom/

and then it tries

/usr/local/directadmin/data/templates/

to find the template of interest. it'd be great,
if when adding a user, DA created

/usr/local/directadmin/data/templates/custom/username/

so it could perhaps look in there first, so something special could
be done for one (or more users)... or a reseller could have his own
custom stuff, independent of anyone else on the server ...
 
Don't think I ever did - just mentioned it in passing here and there.

I'd imagined the template paths being checked, but hadn't
really thought through the best way to implement it - which
may be best to do before making any request ...

Maybe DA would look for a directory, for each user on the box ?
Or it'd look for a directory for each reseller ? (how would that
apply to the reseller's users .. ?) needs more thought perhaps.
 
Last edited:
Back
Top