Browse Source

Also redirect normal web access to www domain.

Thomas Buck 5 years ago
parent
commit
e74015eadf
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      roles/blog/templates/etc_apache2_sites-available_blog.j2

+ 5
- 0
roles/blog/templates/etc_apache2_sites-available_blog.j2 View File

7
 
7
 
8
 <VirtualHost *:443>
8
 <VirtualHost *:443>
9
     ServerName {{ item.name }}
9
     ServerName {{ item.name }}
10
+
11
+    Redirect temp / https://www.{{ item.name }}/
12
+</VirtualHost>
13
+
14
+<VirtualHost *:443>
10
     ServerAlias www.{{ item.name }}
15
     ServerAlias www.{{ item.name }}
11
 
16
 
12
     SSLEngine               On
17
     SSLEngine               On

Loading…
Cancel
Save