added apache virtual host template file
This commit is contained in:
@@ -2,3 +2,4 @@ site_conf: example.com.conf
|
|||||||
php_verison: "8.4"
|
php_verison: "8.4"
|
||||||
mysql_db_name: mysql
|
mysql_db_name: mysql
|
||||||
mysql_db_user: mysql
|
mysql_db_user: mysql
|
||||||
|
web_root: "/var/www/{{ hostname }}"
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user