浏览代码

Also redirect normal web access to www domain.

Thomas Buck 5 年前
父节点
当前提交
e74015eadf
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      roles/blog/templates/etc_apache2_sites-available_blog.j2

+ 5
- 0
roles/blog/templates/etc_apache2_sites-available_blog.j2 查看文件

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

正在加载...
取消
保存