mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
Apply workaround to SSL config for mod_gnutls
HTTPS environmental variable is not set properly by mod_gnutls.
This commit is contained in:
parent
d14f077608
commit
cdda77b3b4
@ -6,10 +6,11 @@
|
|||||||
##
|
##
|
||||||
## Requires the following Apache modules to be enabled:
|
## Requires the following Apache modules to be enabled:
|
||||||
## mod_rewrite
|
## mod_rewrite
|
||||||
## mod_ssl
|
## mod_gnutls
|
||||||
##
|
##
|
||||||
<Location /plinth>
|
<Location /plinth>
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
ReWriteCond %{HTTPS} !=on
|
# FIXME: Workaround for mod_gnutls (Debian Bug #514005)
|
||||||
|
RewriteCond %{SERVER_PORT} !^443$
|
||||||
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
|
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
|
||||||
</Location>
|
</Location>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user