Browse Source

Set a ServerName for apache (fixes #187)

Justin Plock 10 years ago
parent
commit
9f918363b9
No account linked to committer's email address
2 changed files with 5 additions and 0 deletions
  1. 4
    0
      roles/common/tasks/main.yml
  2. 1
    0
      roles/common/templates/fqdn.j2

+ 4
- 0
roles/common/tasks/main.yml View File

@@ -43,6 +43,10 @@
43 43
   command: a2enmod headers creates=/etc/apache2/mods-enabled/headers.load
44 44
   notify: restart apache
45 45
 
46
+- name: Set ServerName for Apache
47
+  template: src=fqdn.j2 dest=/etc/apache2/conf.d/fqdn
48
+  notify: restart apache
49
+
46 50
 - include: encfs.yml tags=encfs
47 51
 - include: users.yml tags=users
48 52
 - include: ssl.yml tags=ssl

+ 1
- 0
roles/common/templates/fqdn.j2 View File

@@ -0,0 +1 @@
1
+ServerName {{ domain }}

Loading…
Cancel
Save