Alias /vtigercrm /usr/share/vtigercrm
{

foreach my $alias (split (/[,;]/, ($vtigercrm{'Alias'} || '') )){
	$OUT .= "Alias /$alias /usr/share/vtigercrm\n";
}
}

<Directory /usr/share/vtigercrm>
    Options None
    AllowOverride None

    AddType application/x-httpd-php .php .php3
    php_admin_value memory_limit 64M
    php_admin_value max_execution_time 600
    php_admin_flag allow_call_time_reference on
    php_admin_flag register_globals off
    php_admin_value error_reporting "E_WARNING & ~E_NOTICE"
{
if ((${'vtigercrm'}{'InstallMode'} || 'disabled') eq 'enabled'){
	$OUT .= "    php_admin_flag display_errors On\n".
		"    php_admin_flag log_errors Off";
}
}

    Order Deny,Allow
{
my $access = (${'vtigercrm'}{'access'} || 'private') eq 'public' ?
        'all':"$localAccess $externalSSLAccess";
$OUT .= "    Allow from $access\n";
}
    <FilesMatch "install.php|migrate.php">
        Order allow,deny
        {
	$OUT .= (${'vtigercrm'}{'InstallMode'} || 'disabled') eq 'enabled' ?
        "Allow from $localAccess $externalSSLAccess\n":"Deny from all\n";
	}
    </FilesMatch>
</Directory>


<Directory /usr/share/vtigercrm/install>
    # 15" should be enough for migration in most case
    php_value max_execution_time 900
    php_value memory_limit 128M
    Order Allow,Deny
{
$OUT .= (${'vtigercrm'}{'InstallMode'} || 'disabled') eq 'enabled' ?
        "    Allow from $localAccess $externalSSLAccess\n":"    Deny from all\n";
}
</Directory>


