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