Skip to content

Commit

Permalink
Use a better rewrite in apache ssl config (#2641)
Browse files Browse the repository at this point in the history
  • Loading branch information
small1 authored May 25, 2024
1 parent b409632 commit 54f59c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lets-encrypt/activate-tls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion nextcloud_install_production.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 54f59c1

Please sign in to comment.