Modifying an vhost configuration

in This case I believe that the ‘Options +FollowSymLinks’ is available for all vhosts, not sure it is good

if you want to set an option following a db property, something like this can be used

vim /etc/e-smith/templates/httpd/vhost-extra/30directory20optionsFollowsymlink

then paste

{
    use esmith::ConfigDB;
    my $vdb = esmith::ConfigDB->open_ro('vhosts') || die("Can't open vhosts db");
    my $FollowSymlink = $vdb->get_prop("$VhostName",'FollowSymlink') || 'disabled';
    $OUT .= "      Options +FollowSymLinks\n" if ($FollowSymlink eq 'enabled');
}

then in your vhost do

db vhosts setprop VHOSTNAME FollowSymlink enabled signal-event vhost-modify VHOSTNAME