mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
- Don't hijack the entire SSL site for sake of Plinth. - Serve both HTTP and HTTPS sites with default configuration. - plinth-ssl configuration only make SSL compulsory. - Document modules required for configuration to work properly. - Don't disable default site during FreedomBox setup run. This is no longer required.
13 lines
288 B
Plaintext
13 lines
288 B
Plaintext
##
|
|
## When enabled allows only SSL traffic onto Plinth
|
|
##
|
|
## Requires the following Apache modules to be enabled:
|
|
## mod_rewrite
|
|
## mod_ssl
|
|
##
|
|
<Location /plinth>
|
|
RewriteEngine on
|
|
ReWriteCond %{HTTPS} !=on
|
|
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
|
|
</Location>
|