Skip to content

Commit a71e586

Browse files
committed
Update vhost configuration
New boilerplate layout Fixes #38
1 parent 5fcbd0a commit a71e586

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

Diff for: provision/roles/boilerplate-main/templates/apache/vhost.conf.j2

+14-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@
1212

1313
UseCanonicalName Off
1414

15-
Include /opt/docker/etc/httpd/vhost.common.conf
15+
<IfVersion < 2.4>
16+
Include /opt/docker/etc/httpd/vhost.common.d/*.conf
17+
</IfVersion>
18+
<IfVersion >= 2.4>
19+
IncludeOptional /opt/docker/etc/httpd/vhost.common.d/*.conf
20+
</IfVersion>
1621
</VirtualHost>
1722

1823
<VirtualHost *:443>
@@ -21,7 +26,14 @@
2126
DocumentRoot "{{ vhost.documentRoot|default('<DOCUMENT_ROOT>') }}"
2227

2328
UseCanonicalName Off
24-
Include /opt/docker/etc/httpd/vhost.common.conf
29+
30+
<IfVersion < 2.4>
31+
Include /opt/docker/etc/httpd/vhost.common.d/*.conf
32+
</IfVersion>
33+
<IfVersion >= 2.4>
34+
IncludeOptional /opt/docker/etc/httpd/vhost.common.d/*.conf
35+
</IfVersion>
36+
2537
Include /opt/docker/etc/httpd/vhost.ssl.conf
2638
</VirtualHost>
2739

Diff for: provision/roles/boilerplate-main/templates/nginx/vhost.conf.j2

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ server {
3030
fastcgi_read_timeout 1000;
3131
}
3232

33-
include /opt/docker/etc/nginx/vhost.common.conf;
33+
include /opt/docker/etc/nginx/vhost.common.d/*.conf;
3434
}
3535

3636
##############
@@ -62,7 +62,7 @@ server {
6262
fastcgi_read_timeout 1000;
6363
}
6464

65-
include /opt/docker/etc/nginx/vhost.common.conf;
65+
include /opt/docker/etc/nginx/vhost.common.d/*.conf;
6666
include /opt/docker/etc/nginx/vhost.ssl.conf;
6767
}
6868

0 commit comments

Comments
 (0)