What did You do? It might be that others can use Your experience!
Oh ok here is what I did:
I have e-smith-modindex-0.0.5-2 as one of the e-smith modules and found that that is part of the problem.
to get around directory indexing I copied
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess40ibays
to
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/90e-smithAccess40ibays
I then made the following change:
FROM
my $dynamicContent = $properties{'CgiBin'} || "disabled";
$OUT .= "\n";
$OUT .= "#------------------------------------------------------------\n";
$OUT .= "# $key ibay directories ($properties{'Name'})\n";
$OUT .= "#------------------------------------------------------------\n";
$OUT .= "\n";
$OUT .= "<Directory /home/e-smith/files/ibays/$key/html>\n";
$OUT .= " Options +Indexes\n";
if ($dynamicContent eq 'enabled')
{
$OUT .= " Options +Includes\n";
}
TO
my $dynamicContent = $properties{'CgiBin'} || "disabled";
$OUT .= "\n";
$OUT .= "#------------------------------------------------------------\n";
$OUT .= "# $key ibay directories ($properties{'Name'})\n";
$OUT .= "#------------------------------------------------------------\n";
$OUT .= "\n";
$OUT .= "<Directory /home/e-smith/files/ibays/$key/html>\n";
$OUT .= " Options -Indexes\n";
if ($dynamicContent eq 'enabled')
{
$OUT .= " Options +Includes\n";
}
The only real change in this section is from Options +Indexes to Options -Indexes
I also had to disable the e-smith-modindex-0.0.5-2 module by doing this:
copied /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86ModIndex to /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/86ModIndex and hashed # all the lines in this file.
then ran /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
then /etc/init.d/httpd graceful and that got rid of and secured my server and all websites.
I do have one site that still requires directory browsing, but for now I have just changed the httpd.conf directly and restarted httpd. once I have a solution for that I will post it here.
I was thinking about adding an if statement that reads a file, but am at the moment just happy that my solution works. Will spend more time on it later.
Hope this helps.