diff --git a/services/univention-apache/conffiles/etc/apache2/mods-available/ssl.conf b/services/univention-apache/conffiles/etc/apache2/mods-available/ssl.conf index 4b4a849..fb54e26 100644 --- a/services/univention-apache/conffiles/etc/apache2/mods-available/ssl.conf +++ b/services/univention-apache/conffiles/etc/apache2/mods-available/ssl.conf @@ -93,7 +93,7 @@ print 'SSLCipherSuite %s' % configRegistry.get('apache2/ssl/ciphersuite', 'HIGH: @!@ if configRegistry.is_true("apache2/force_https"): print 'RewriteEngine on' - print 'RewriteCond %{HTTPS} !=on' - print 'RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]' + print 'RewriteCond %{HTTPS} off' + print 'RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R=301,L]' print @!@