Procházet zdrojové kódy

Fix a bunch of broken http->https redirects and make them always temporary

Thomas Buck před 5 roky
rodič
revize
7b8f15528d

+ 1
- 1
roles/blog/templates/etc_apache2_sites-available_blog.j2 Zobrazit soubor

@@ -2,7 +2,7 @@
2 2
     ServerName {{ item.name }}
3 3
     ServerAlias www.{{ item.name }}
4 4
 
5
-    Redirect permanent / https://{{ item.name }}/
5
+    Redirect temp / https://www.{{ item.name }}/
6 6
 </VirtualHost>
7 7
 
8 8
 <VirtualHost *:443>

+ 1
- 1
roles/blog/templates/etc_apache2_sites-available_fathom.j2 Zobrazit soubor

@@ -1,7 +1,7 @@
1 1
 <VirtualHost *:80>
2 2
     ServerName fathom.{{ item.name }}
3 3
 
4
-    Redirect permanent / https://{{ item.name }}/
4
+    Redirect temp / https://fathom.{{ item.name }}/
5 5
 </VirtualHost>
6 6
 
7 7
 <VirtualHost *:443>

+ 1
- 1
roles/gitea/templates/etc_apache2_sites-available_gitea.j2 Zobrazit soubor

@@ -1,7 +1,7 @@
1 1
 <VirtualHost *:80>
2 2
     ServerName {{ gitea_subdomain }}.{{ item.name }}
3 3
 
4
-    Redirect permanent / https://{{ item.name }}/
4
+    Redirect temp / https://{{ gitea_subdomain }}.{{ item.name }}/
5 5
 </VirtualHost>
6 6
 
7 7
 <VirtualHost *:443>

+ 2
- 3
roles/mailserver/templates/etc_apache2_sites-available_autoconfig.j2 Zobrazit soubor

@@ -1,15 +1,14 @@
1 1
 <VirtualHost *:80>
2 2
     ServerName {{ mail_server_autoconfig_hostname }}
3 3
 
4
-    Redirect permanent / https://{{ mail_server_autoconfig_hostname }}/
4
+    Redirect temp / https://{{ mail_server_autoconfig_hostname }}/
5 5
 </VirtualHost>
6 6
 
7 7
 <VirtualHost *:443>
8 8
     ServerName {{ mail_server_autoconfig_hostname }}
9
-    SSLEngine On
10 9
 
10
+    SSLEngine               On
11 11
     DocumentRoot            "/var/www/autoconfig"
12 12
     Options                 -Indexes
13
-
14 13
     HostnameLookups         Off
15 14
 </VirtualHost>

+ 1
- 1
roles/matrix/templates/etc_apache2_sites-available_matrix.j2 Zobrazit soubor

@@ -1,7 +1,7 @@
1 1
 <VirtualHost *:80>
2 2
     ServerName {{ matrix_subdomain }}.{{ item.name }}
3 3
 
4
-    Redirect permanent / https://{{ item.name }}/
4
+    Redirect temp / https://{{ matrix_subdomain }}.{{ item.name }}/
5 5
 </VirtualHost>
6 6
 
7 7
 <VirtualHost *:443>

+ 1
- 1
roles/monitoring/templates/etc_apache2_sites-available_monit.j2 Zobrazit soubor

@@ -1,7 +1,7 @@
1 1
 <VirtualHost *:80>
2 2
     ServerName {{ monit_subdomain }}.{{ item.name }}
3 3
 
4
-    Redirect permanent / https://{{ item.name }}/
4
+    Redirect temp / https://{{ monit_subdomain }}.{{ item.name }}/
5 5
 </VirtualHost>
6 6
 
7 7
 <VirtualHost *:443>

+ 1
- 1
roles/news/templates/etc_apache2_sites-available_selfoss.j2 Zobrazit soubor

@@ -1,7 +1,7 @@
1 1
 <VirtualHost *:80>
2 2
     ServerName {{ selfoss_subdomain }}.{{ item.name }}
3 3
 
4
-    Redirect permanent / https://{{ selfoss_subdomain }}.{{ item.name }}/
4
+    Redirect temp / https://{{ selfoss_subdomain }}.{{ item.name }}/
5 5
 </VirtualHost>
6 6
 
7 7
 <VirtualHost *:443>

+ 1
- 1
roles/nextcloud/templates/etc_apache2_sites-available_nextcloud.j2 Zobrazit soubor

@@ -1,7 +1,7 @@
1 1
 <VirtualHost *:80>
2 2
     ServerName {{ nextcloud_subdomain }}.{{ item.name }}
3 3
 
4
-    Redirect permanent / https://{{ nextcloud_subdomain }}.{{ item.name }}/
4
+    Redirect temp / https://{{ nextcloud_subdomain }}.{{ item.name }}/
5 5
 </VirtualHost>
6 6
 
7 7
 <VirtualHost *:443>

+ 1
- 1
roles/webmail/templates/etc_apache2_sites-available_roundcube.j2 Zobrazit soubor

@@ -1,7 +1,7 @@
1 1
 <VirtualHost *:80>
2 2
     ServerName {{ webmail_subdomain }}.{{ item.name }}
3 3
 
4
-    Redirect permanent / https://{{ webmail_subdomain }}.{{ item.name }}/
4
+    Redirect temp / https://{{ webmail_subdomain }}.{{ item.name }}/
5 5
 </VirtualHost>
6 6
 
7 7
 <VirtualHost *:443>

Loading…
Zrušit
Uložit