latham
2013-03-02 30fc1b7c564e4062266bd4b53fd95fa229f62f31
server/plugins-available/apache2_plugin.inc.php
@@ -1410,23 +1410,23 @@
         if(count($alias_seo_redirects) > 0) $tmp_vhost_arr = $tmp_vhost_arr + array('alias_seo_redirects' => $alias_seo_redirects);
         $vhosts[] = $tmp_vhost_arr;
         unset($tmp_vhost_arr);
         $app->log('Enable SSL for: '.$domain,LOGLEVEL_DEBUG);
      }
   //* Add vhost for IPv6 IP
   if($data['new']['ipv6_address'] != '') {
      if ($conf['serverconfig']['web']['vhost_rewrite_v6'] == 'y') {
         if (isset($conf['serverconfig']['server']['v6_prefix']) && $conf['serverconfig']['server']['v6_prefix'] <> '') {
            $explode_v6prefix=explode(':',$conf['serverconfig']['server']['v6_prefix']);
            $explode_v6=explode(':',$data['new']['ipv6_address']);
            for ( $i = 0; $i <= count($explode_v6prefix)-3; $i++ ) {
                    $explode_v6[$i] = $explode_v6prefix[$i];
            }
            $data['new']['ipv6_address'] = implode(':',$explode_v6);
         }
      }
         $app->log('Enable SSL for: '.$domain,LOGLEVEL_DEBUG);
      }
   //* Add vhost for IPv6 IP
   if($data['new']['ipv6_address'] != '') {
      if ($conf['serverconfig']['web']['vhost_rewrite_v6'] == 'y') {
         if (isset($conf['serverconfig']['server']['v6_prefix']) && $conf['serverconfig']['server']['v6_prefix'] <> '') {
            $explode_v6prefix=explode(':',$conf['serverconfig']['server']['v6_prefix']);
            $explode_v6=explode(':',$data['new']['ipv6_address']);
            for ( $i = 0; $i <= count($explode_v6prefix)-3; $i++ ) {
                    $explode_v6[$i] = $explode_v6prefix[$i];
            }
            $data['new']['ipv6_address'] = implode(':',$explode_v6);
         }
      }
         $tmp_vhost_arr = array('ip_address' => '['.$data['new']['ipv6_address'].']', 'ssl_enabled' => 0, 'port' => 80);
         if(count($rewrite_rules) > 0)  $tmp_vhost_arr = $tmp_vhost_arr + array('redirects' => $rewrite_rules);
         if(count($alias_seo_redirects) > 0) $tmp_vhost_arr = $tmp_vhost_arr + array('alias_seo_redirects' => $alias_seo_redirects);