Skip to content

Commit 17d2fb6

Browse files
author
Till Brehm
committed
Merge branch 'master' into 'stable-3.1'
After enabling "Rewrite HTTP to HTTPS" and "Lets Encrypt SSL" the RewriteCond an… After enabling "Rewrite HTTP to HTTPS" and "Lets Encrypt SSL" the RewriteCond and RewriteRule got on the same line, becourse of an failing newline root@sv-vs-15:/etc/apache2/sites-available# /etc/init.d/apache2 restart Syntax error on line 276 of /etc/apache2/sites-enabled/100-domain.nl.vhost: RewriteCond: bad flag delimiters Action 'configtest' failed. The Apache error log may have more information. ...fail! See merge request !381
2 parents 74fbcbc + 804c520 commit 17d2fb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/conf/vhost.conf.master

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,8 @@
430430
<tmpl_else>
431431
<tmpl_if name='rewrite_to_https' op='==' value='y'>
432432
RewriteCond %{HTTPS} off
433-
<tmpl_if name='apache_version' op='<' value='2.4' format='version'>RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/</tmpl_if>
433+
<tmpl_if name='apache_version' op='<' value='2.4' format='version'>RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/
434+
</tmpl_if>
434435
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
435436
</tmpl_if>
436437
</tmpl_if>

0 commit comments

Comments
 (0)