Commits

Éric Veiras Galisson committed 9aa3eab

nginx: added per domain logs to nginx::site::redirect

Comments (0)

Files changed (1)

nginx/templates/redirect.erb

     listen              <%= define_port %>;
     server_name         <%= server_name %><% server_aliases.each do |val| -%> <%= val %><% end -%>;
     rewrite             <%= rewrite_pattern %>;
+
+    access_log          /var/log/nginx/<%= server_name %>.access.log;
+    error_log           /var/log/nginx/<%= server_name %>.error.log;
 }