mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
For SSL redirection, use 301 permanent
This commit is contained in:
parent
e2ca5e0f12
commit
9d6e17660d
@ -1,5 +1,8 @@
|
||||
##
|
||||
## When enabled allows only SSL traffic onto Plinth
|
||||
## When enabled allows only SSL traffic onto Plinth. This is done by
|
||||
## redirecting non-secure traffic to secure traffic. The redirect is
|
||||
## permanent as recommended in:
|
||||
## http://tools.ietf.org/html/rfc6797#section-7
|
||||
##
|
||||
## Requires the following Apache modules to be enabled:
|
||||
## mod_rewrite
|
||||
@ -8,5 +11,5 @@
|
||||
<Location /plinth>
|
||||
RewriteEngine on
|
||||
ReWriteCond %{HTTPS} !=on
|
||||
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
|
||||
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
|
||||
</Location>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user