소스 검색

Move NameVirtualHost directives to ports.conf

Luke Cyca 10 년 전
부모
커밋
c697e135e9

+ 0
- 3
roles/blog/templates/etc_apache2_sites-available_blog.j2 파일 보기

@@ -1,5 +1,3 @@
1
-NameVirtualHost *:80
2
-
3 1
 <VirtualHost *:80>
4 2
     ServerName {{ blog_domain }}
5 3
     ServerAlias www.{{ blog_domain }}
@@ -7,7 +5,6 @@ NameVirtualHost *:80
7 5
     Redirect / https://{{ blog_domain }}/
8 6
 </VirtualHost>
9 7
 
10
-NameVirtualHost *:443
11 8
 
12 9
 <VirtualHost *:443>
13 10
     ServerName {{ blog_domain }}

+ 3
- 0
roles/common/tasks/ssl.yml 파일 보기

@@ -13,3 +13,6 @@
13 13
 
14 14
 - name: Enable Apache SSL module
15 15
   command: a2enmod ssl creates=/etc/apache2/mods-enabled/ssl.load
16
+
17
+- name: Enable NameVirtualHost for HTTPS
18
+  lineinfile: dest=/etc/apache2/ports.conf regexp='^    NameVirtualHost \*:443' insertafter='^<IfModule mod_ssl.c>' line='    NameVirtualHost *:443'

+ 0
- 2
roles/owncloud/templates/etc_apache2_sites-available_owncloud.j2 파일 보기

@@ -1,5 +1,3 @@
1
-NameVirtualHost *:443
2
-
3 1
 <VirtualHost *:443>
4 2
     ServerName {{ owncloud_domain }}
5 3
 

Loading…
취소
저장