roles/nginx: Per-vhost logs

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2014-08-27 20:26:12 +03:00
parent 5bbec6716c
commit 0b8e0c38bf
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -8,6 +8,9 @@ server {
server_name {{ domain_name }} {{ domain_aliases }}; server_name {{ domain_name }} {{ domain_aliases }};
access_log /var/log/nginx/{{ domain_name }}-access.log;
error_log /var/log/nginx/{{ domain_name }}-error.log;
location / { location / {
try_files $uri $uri/ =404; try_files $uri $uri/ =404;
} }