Skip to content

Commit

Permalink
Update vhost configuration
Browse files Browse the repository at this point in the history
New boilerplate layout
Fixes #38
  • Loading branch information
mblaschke committed May 24, 2016
1 parent 46409cc commit b9c5a03
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
16 changes: 14 additions & 2 deletions provision/roles/boilerplate-main/templates/apache/vhost.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@

UseCanonicalName Off

Include /opt/docker/etc/httpd/vhost.common.conf
<IfVersion < 2.4>
Include /opt/docker/etc/httpd/vhost.common.d/*.conf
</IfVersion>
<IfVersion >= 2.4>
IncludeOptional /opt/docker/etc/httpd/vhost.common.d/*.conf
</IfVersion>
</VirtualHost>

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

UseCanonicalName Off
Include /opt/docker/etc/httpd/vhost.common.conf

<IfVersion < 2.4>
Include /opt/docker/etc/httpd/vhost.common.d/*.conf
</IfVersion>
<IfVersion >= 2.4>
IncludeOptional /opt/docker/etc/httpd/vhost.common.d/*.conf
</IfVersion>

Include /opt/docker/etc/httpd/vhost.ssl.conf
</VirtualHost>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ server {
fastcgi_read_timeout 1000;
}

include /opt/docker/etc/nginx/vhost.common.conf;
include /opt/docker/etc/nginx/vhost.common.d/*.conf;
}

##############
Expand Down Expand Up @@ -62,7 +62,7 @@ server {
fastcgi_read_timeout 1000;
}

include /opt/docker/etc/nginx/vhost.common.conf;
include /opt/docker/etc/nginx/vhost.common.d/*.conf;
include /opt/docker/etc/nginx/vhost.ssl.conf;
}

Expand Down

0 comments on commit b9c5a03

Please sign in to comment.