summaryrefslogtreecommitdiff
path: root/roles/apache_server/templates
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-04-24 12:57:57 +0300
committerLars Wirzenius <liw@liw.fi>2017-04-24 12:57:57 +0300
commit8d7be2a4659f20af0386048b2444f6d0adc59c41 (patch)
treed5e8664ad20a66054529f680b661f64851b060c3 /roles/apache_server/templates
parentbc0d7897d1f4a88d5d60b9460a3fd52a3fc196bc (diff)
downloaddebian-ansible-8d7be2a4659f20af0386048b2444f6d0adc59c41.tar.gz
Rename roles to be more specific
Suggested by Ivan Dolgov.
Diffstat (limited to 'roles/apache_server/templates')
-rw-r--r--roles/apache_server/templates/virtualhost.conf.tmpl14
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/apache_server/templates/virtualhost.conf.tmpl b/roles/apache_server/templates/virtualhost.conf.tmpl
new file mode 100644
index 0000000..6afdd41
--- /dev/null
+++ b/roles/apache_server/templates/virtualhost.conf.tmpl
@@ -0,0 +1,14 @@
+<VirtualHost *:80>
+ ServerName {{ item.domain }}
+{% if item.alias is defined %}
+ ServerAlias {{ item.alias }}
+{% endif %}
+ ServerAdmin {{ item.ownermail }}
+ DocumentRoot /srv/http/{{ item.domain }}
+ ErrorLog /var/log/apache2/{{ item.domain }}/error.log
+ CustomLog /var/log/apache2/{{ item.domain }}/access.log combined
+ <Directory /srv/http/{{ item.domain }}>
+ Options +SymlinksIfOwnerMatch +Indexes
+ Require all granted
+ </Directory>
+</VirtualHost>