瀏覽代碼

Set a ServerName for apache (fixes #187)

Justin Plock 11 年之前
父節點
當前提交
9f918363b9
No account linked to committer's email address
共有 2 個文件被更改,包括 5 次插入0 次删除
  1. 4
    0
      roles/common/tasks/main.yml
  2. 1
    0
      roles/common/templates/fqdn.j2

+ 4
- 0
roles/common/tasks/main.yml 查看文件

43
   command: a2enmod headers creates=/etc/apache2/mods-enabled/headers.load
43
   command: a2enmod headers creates=/etc/apache2/mods-enabled/headers.load
44
   notify: restart apache
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
 - include: encfs.yml tags=encfs
50
 - include: encfs.yml tags=encfs
47
 - include: users.yml tags=users
51
 - include: users.yml tags=users
48
 - include: ssl.yml tags=ssl
52
 - include: ssl.yml tags=ssl

+ 1
- 0
roles/common/templates/fqdn.j2 查看文件

1
+ServerName {{ domain }}

Loading…
取消
儲存