summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Porte <microjoe@microjoe.org>2017-06-24 11:55:21 +0200
committerRomain Porte <microjoe@microjoe.org>2017-06-24 11:55:21 +0200
commit6f82fe51b1809012c467ec2595a3dd2a5cdad652 (patch)
tree784baded864589314b3b7b6ed0510fe251045978
parent3c5842cd6ed3e465556b3603870ab1682d8d0fbd (diff)
downloadMicroJoe.nginx-staticwebsite-6f82fe51b1809012c467ec2595a3dd2a5cdad652.tar.gz
MicroJoe.nginx-staticwebsite-6f82fe51b1809012c467ec2595a3dd2a5cdad652.zip
Custom log files
-rw-r--r--templates/nginx.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/nginx.j2 b/templates/nginx.j2
index 6ee36ba..aceef2a 100644
--- a/templates/nginx.j2
+++ b/templates/nginx.j2
@@ -5,6 +5,8 @@ server {
listen [::]:80;
server_name {{ nginx_domain }};
+ access_log /var/log/nginx/{{ nginx_domain }}.access.log;
+ error_log /var/log/nginx/{{ nginx_domain }}.error.log;
{% if letsencrypt_activate %}
location .well-known {
@@ -22,6 +24,8 @@ server {
listen [::]:443 ssl;
server_name {{ nginx_domain }};
+ access_log /var/log/nginx/{{ nginx_domain }}.access.log;
+ error_log /var/log/nginx/{{ nginx_domain }}.error.log;
ssl on;
ssl_certificate /etc/letsencrypt/live/{{ nginx_domain }}/fullchain.pem;