mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
Use a better rewrite in apache ssl config (#2641)
This commit is contained in:
parent
b40963207d
commit
54f59c1069
@ -137,7 +137,7 @@ then
|
||||
cat << TLS_CREATE > "$tls_conf"
|
||||
<VirtualHost *:80>
|
||||
RewriteEngine On
|
||||
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
|
||||
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [END,NE,R=permanent]
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:443>
|
||||
|
||||
@ -830,7 +830,7 @@ then
|
||||
cat << TLS_CREATE > "$SITES_AVAILABLE/$TLS_CONF"
|
||||
# <VirtualHost *:80>
|
||||
# RewriteEngine On
|
||||
# RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
|
||||
# RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [END,NE,R=permanent]
|
||||
# </VirtualHost>
|
||||
|
||||
<VirtualHost *:443>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user