View Full Version : Options +Indexes to all accounts
backusnetcom
01-15-2005, 02:16 PM
Hello,
i want to set Options +Indexes
to all accounts, i did it in one httpd config for one account, but it's too much work to do it for all, how can i make that default for all + new accounts?
Thanks,
Sander
jmstacey
01-15-2005, 09:46 PM
You can edit the master httpd.conf file in /etc/httpd/conf/
This requires root ssh access, otherwise it's basically the same way you've been doing it for individual domains.
backusnetcom
01-16-2005, 01:55 AM
Originally posted by jmstacey
You can edit the master httpd.conf file in /etc/httpd/conf/
This requires root ssh access, otherwise it's basically the same way you've been doing it for individual domains.
and if i do that it's done for all domains on the server?
i changed the - into a plug in
<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
But it's not working :(
jmstacey
01-16-2005, 07:32 PM
After making the changes did you restart Apache?
backusnetcom
01-16-2005, 10:29 PM
Originally posted by jmstacey
After making the changes did you restart Apache?
yes
jmstacey
01-16-2005, 11:29 PM
I just took a look, and found that the Indexes configuration is overriden for the public_html directory in each account's httpd.conf file.
So the modifications you made do effect all websites within the /home/ directory, but the Indexes configuration is still overriden in each account's httpd.conf file.
It would be better to modify the virtualhost template.
You can use the instructions from the following webpage as a guide to modify the virtualhost template, changing the -Indexes to a +Indexes, then you can initiate a rewrite of all existing virtualhost files with your new template.
http://help.directadmin.com/item.php?id=2
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.