added apache virtual host template file

This commit is contained in:
2024-12-04 11:14:09 +01:00
parent 7f50fbd7e0
commit 996b0ce4ee
2 changed files with 18 additions and 0 deletions

View File

@@ -2,3 +2,4 @@ site_conf: example.com.conf
php_verison: "8.4"
mysql_db_name: mysql
mysql_db_user: mysql
web_root: "/var/www/{{ hostname }}"

View File

@@ -0,0 +1,17 @@
<VirtualHost *:80>
ServerName {{ hostname }}
DirectoryIndex index.php index.html
DocumentRoot {{ web_root }}
<Directory {{ web_root }}>
Options +FollowSymlinks -Indexes
AllowOverride All
Require all granted
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME {{ web_root }}
SetEnv HTTP_HOME {{ web_root }}
</Directory>
</VirtualHost>