Changes

From SME Server
Jump to navigationJump to search
106 bytes removed ,  07:46, 16 December 2012
no edit summary
Line 107: Line 107:       −
'''
+
'''A) Custom Templates'''
A) Custom Templates'''
        Line 147: Line 146:  
         if ($cgiBin)
 
         if ($cgiBin)
 
         {
 
         {
    $OUT .= "    ScriptAlias /cgi-bin $basedir/cgi-bin\n";
+
$OUT .= "    ScriptAlias /cgi-bin $basedir/cgi-bin\n";
 
         }
 
         }
 
         else
 
         else
 
         {
 
         {
    $OUT .=
+
$OUT .=
    "    # To add cgi-bin ScriptAlias for this i-bay, run:\n"
+
"    # To add cgi-bin ScriptAlias for this i-bay, run:\n"
 
          . "    #  /sbin/e-smith/db accounts setprop $ibay CgiBin "
 
          . "    #  /sbin/e-smith/db accounts setprop $ibay CgiBin "
        . "enabled\n"
+
      . "enabled\n"
          . "    #  /sbin/e-smith/signal-event console-save\n";
+
    . "    #  /sbin/e-smith/signal-event console-save\n";
 
         }
 
         }
 
         $OUT .= "#    Alias      /files  $basedir/files\n";
 
         $OUT .= "#    Alias      /files  $basedir/files\n";
Line 162: Line 161:  
             eq 'yes')
 
             eq 'yes')
 
         {
 
         {
    my @ibays = $accounts->ibays;
+
my @ibays = $accounts->ibays;
 
    foreach my $ibay (@ibays)
 
    foreach my $ibay (@ibays)
    {
+
{
        my $key = $ibay->key;
+
    my $key = $ibay->key;
        next if $key eq $virtualHostContent;
+
    next if $key eq $virtualHostContent;
        my $basedir = "/home/e-smith/files/ibays/$key";
+
    my $basedir = "/home/e-smith/files/ibays/$key";
        my $cgiBin = $ibay->prop("CgiBin") || "";
+
    my $cgiBin = $ibay->prop("CgiBin") || "";
        my $name = $ibay->prop("Name") || "";
+
    my $name = $ibay->prop("Name") || "";
 
     
 
     
        $OUT .= "\n";
+
    $OUT .= "\n";
        $OUT .= "    # $key ibay ($name)\n";
+
    $OUT .= "    # $key ibay ($name)\n";
        $OUT .= "\n";
+
    $OUT .= "\n";
 
     
 
     
        if ($cgiBin)
+
    if ($cgiBin)
        {
+
    {
    $OUT .= "    ScriptAlias /$key/cgi-bin $basedir/cgi-bin\n";
+
    $OUT .= "    ScriptAlias /$key/cgi-bin $basedir/cgi-bin\n";
        }
+
    }
        else
+
    else
        {
+
    {
    $OUT .=  
+
$OUT .=  
        "    # To add cgi-bin ScriptAlias for this i-bay, run:\n"
+
    "    # To add cgi-bin ScriptAlias for this i-bay, run:\n"
        . "    #  /sbin/e-smith/db accounts setprop $key CgiBin "
+
    . "    #  /sbin/e-smith/db accounts setprop $key CgiBin "
. "enabled\n"
+
. "enabled\n"
        . "    #  /sbin/e-smith/signal-event console-save\n";
+
    . "    #  /sbin/e-smith/signal-event console-save\n";
        }
+
    }
 
      
 
      
 
         $OUT .= "    Alias      /$key/files  $basedir/files\n";
 
         $OUT .= "    Alias      /$key/files  $basedir/files\n";
175

edits

Navigation menu