Apply workaround to SSL config for mod_gnutls

HTTPS environmental variable is not set properly by mod_gnutls.
This commit is contained in:
James Valleroy 2015-09-08 18:51:57 -04:00 committed by Sunil Mohan Adapa
parent d14f077608
commit cdda77b3b4

View File

@ -6,10 +6,11 @@
##
## Requires the following Apache modules to be enabled:
## mod_rewrite
## mod_ssl
## mod_gnutls
##
<Location /plinth>
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]
</Location>