nginx/site: Use seperate access logs for virtual hosts
This commit is contained in:
parent
ed538d3371
commit
155d121da9
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,9 @@ server {
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl http2;
|
||||||
server_name {{ site }};
|
server_name {{ site }};
|
||||||
|
|
||||||
|
access_log {{ nginx_logdir }}/{{ site }}.access.log combined;
|
||||||
|
error_log {{ nginx_logdir }}/{{ site }}.error.log;
|
||||||
|
|
||||||
add_header Strict-Transport-Security "max-age=63072000" always;
|
add_header Strict-Transport-Security "max-age=63072000" always;
|
||||||
|
|
||||||
{% if ssl_config is defined %}
|
{% if ssl_config is defined %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue