From e6b38c96260925845e67d632e267745b119208b7 Mon Sep 17 00:00:00 2001 From: mikx Date: Mon, 5 Jan 2026 20:07:55 -0500 Subject: [PATCH] apvh update --- .gitignore | 4 +-- apvh/index.php | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+), 2 deletions(-) create mode 100644 apvh/index.php diff --git a/.gitignore b/.gitignore index 30f3246..c656016 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -*.php -*.html +/*.php +/*.html diff --git a/apvh/index.php b/apvh/index.php new file mode 100644 index 0000000..9216522 --- /dev/null +++ b/apvh/index.php @@ -0,0 +1,71 @@ +\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

+

Sources: MxGit

+
+

+
+
+ + + + + + + + + + + + + +
+ + +

Result:

+ +

Copy this into your /etc/apache2/sites-available/ folder.

+ +
+ + + \ No newline at end of file