VHost bearbeiten"); output(""); $defaultdocroot = $vhost['domain']; if ($vhost['hostname']) $defaultdocroot = $vhost['hostname'].'.'.$defaultdocroot; $defaultdocroot = 'websites/'.$defaultdocroot.'/htdocs'; $is_default_docroot = ($vhost['docroot'] == NULL) || ($vhost['homedir'].'/'.$defaultdocroot == $vhost['docroot']); $docroot = ''; if ($vhost['docroot'] == '') $docroot = $defaultdocroot; else $docroot = substr($vhost['docroot'], strlen($vhost['homedir'])+1); $s = (strstr($vhost['options'], 'aliaswww') ? ' checked="checked" ' : ''); $form = "
Einstellung | aktueller Wert | System-Standard |
---|---|---|
Name | .".domainselect($vhost['domain_id'], 'onchange="defaultDocumentRoot()"');
$form .= " | keiner |
Lokaler Pfad | ".$vhost['homedir']."/ |
{$defaultdocroot} |
PHP | als Apache-Modul | |
Logfiles | keine Logfiles |
'.internal_link('vhosts.php', 'Ohne Speichern zurück').'
'; output(html_form('vhosts_edit_vhost', 'save.php', 'action=edit&vhost='.$vhost['id'], $form)); ?>