Separated log files per vhost
This commit is contained in:
parent
0f7edefe94
commit
2b4d9c0a28
|
@ -29,6 +29,8 @@ server {
|
|||
alias {{vars.nginx.default_html_dir}}/.well-known/acme-challenge/;
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
access_log /var/log/nginx/{{vars.nginx_vhost.site.domain}}.access.log;
|
||||
error_log /var/log/nginx/{{vars.nginx_vhost.site.domain}}.error.log;
|
||||
|
||||
return 301 https://{{vars.nginx_vhost.site.domain}}$request_uri;
|
||||
}
|
||||
|
@ -51,6 +53,8 @@ server {
|
|||
|
||||
# ssl_dhparam /etc/nginx/dhparam.pem;
|
||||
|
||||
access_log /var/log/nginx/{{vars.nginx_vhost.site.domain}}.access.log;
|
||||
error_log /var/log/nginx/{{vars.nginx_vhost.site.domain}}.error.log;
|
||||
root {{vars.nginx_vhost.site.doc_root}};
|
||||
{{{vars.nginx_vhost.site.raw}}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue