Skip to content

Commit 804c520

Browse files
committed
After enabling "Rewrite HTTP to HTTPS" and "Lets Encrypt SSL" the RewriteCond and RewriteRule got on the same line, becourse of an failing newline
1 parent e1ceb05 commit 804c520

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)