Skip to content

Commit 99ab136

Browse files
authored
avoid security warning in Nextcloud (#2647)
1 parent a185a01 commit 99ab136

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lets-encrypt/activate-tls.sh

+1-1
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 [END,NE,R=permanent]
140+
RewriteRule ^(.*)$ https://%{HTTP_HOST}\$1 [END,NE,R=permanent]
141141
</VirtualHost>
142142
143143
<VirtualHost *:443>

nextcloud_install_production.sh

+1-1
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 [END,NE,R=permanent]
833+
# RewriteRule ^(.*)$ https://%{HTTP_HOST}\$1 [END,NE,R=permanent]
834834
# </VirtualHost>
835835
836836
<VirtualHost *:443>

0 commit comments

Comments
 (0)