Better PHP and vhost management

This commit is contained in:
Emilien Mantel
2015-07-16 11:44:54 +02:00
parent 57882393b8
commit 5d084416e1
3 changed files with 12 additions and 13 deletions

View File

@@ -14,7 +14,11 @@
server_name {{ server_name | join(' ') }};
{% endif %}
{% if item.root is defined %}
root {{ item.root }};
{% else %}
root {{ nginx_root }}/{{ item.name }}/public;
{% endif %}
{% if item.use_access_log is defined and item.use_access_log %}
access_log {{ nginx_log_dir }}/{{ item.name }}_access.log combined;