Skip to content

Commit 54f59c1

Browse files
authored
Use a better rewrite in apache ssl config (#2641)
1 parent b409632 commit 54f59c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lets-encrypt/activate-tls.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ then
137137
cat << TLS_CREATE > "$tls_conf"
138138
<VirtualHost *:80>
139139
RewriteEngine On
140-
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
140+
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [END,NE,R=permanent]
141141
</VirtualHost>
142142
143143
<VirtualHost *:443>

nextcloud_install_production.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ then
830830
cat << TLS_CREATE > "$SITES_AVAILABLE/$TLS_CONF"
831831
# <VirtualHost *:80>
832832
# RewriteEngine On
833-
# RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
833+
# RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [END,NE,R=permanent]
834834
# </VirtualHost>
835835
836836
<VirtualHost *:443>

0 commit comments

Comments
 (0)