Hi,
I went to add FollowSymLinks into the templates and found that it would be done in 90-e-smithAccess40ibays for version 7 but there is a variable there that handles this
The file:
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess40ibays
The variable:
$OUT .= " Options +FollowSymLinks\n" if ($followSymLinks eq 'enabled');
More context:
my $followSymLinks = $properties{'FollowSymLinks'} || "disabled";
my $indexes = $properties{'Indexes'} || "enabled";
$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 None\n";
$OUT .= " Options \n";
$OUT .= " Options +Indexes\n" if ($indexes eq 'enabled');
$OUT .= " Options +FollowSymLinks\n" if ($followSymLinks eq 'enabled');
if ($dynamicContent eq 'enabled')
{
$OUT .= " Options +Includes\n";
}
else
{
$OUT .= " Options +IncludesNOEXEC\n";
$OUT .= " <FilesMatch \"\\.(php|php3|phtml)\$\">\n";
$OUT .= " order deny,allow\n";
$OUT .= " Deny from all\n";
$OUT .= " </FilesMatch>\n";
}
$OUT .= " AllowOverride $allowOverride\n";
$OUT .= " order deny,allow\n";
$OUT .= " deny from all\n";
$OUT .= " allow from $allow\n";
How do I set $followSymLinks? I could just put this file in templates-custom and change the line
my $followSymLinks = $properties{'FollowSymLinks'} || "disabled";
But is there a better way?