\n";
$vhost .= " ServerAdmin $email\n";
$vhost .= " ServerName $domain\n";
$vhost .= " ServerAlias www.$domain\n";
$vhost .= " DocumentRoot $path\n\n";
$vhost .= " \n";
$vhost .= " Options Indexes FollowSymLinks\n";
$vhost .= " AllowOverride All\n";
$vhost .= " Require all granted\n";
$vhost .= " \n\n";
$vhost .= " ErrorLog \${APACHE_LOG_DIR}/error.log\n";
$vhost .= " CustomLog \${APACHE_LOG_DIR}/access.log combined\n";
$vhost .= "";
$generated_vhost = $vhost;
}
?>
Apache VHost Generator
Apache VHost Generator
Language: HTML / PHP
Developper: mikx
Version: 0.1.0
Result:
Copy this into your /etc/apache2/sites-available/ folder.