mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-02-02 09:48:13 -05:00
Store host logs in subfolders
This commit is contained in:
parent
bd3a13b2a5
commit
fae848bd1b
@ -7,8 +7,8 @@ server {
|
|||||||
{% include "_hsts.conf" %}
|
{% include "_hsts.conf" %}
|
||||||
{% include "_forced_ssl.conf" %}
|
{% include "_forced_ssl.conf" %}
|
||||||
|
|
||||||
access_log /data/logs/dead-host-{{ id }}_access.log standard;
|
access_log /data/logs/dead_host-{{ id }}/access.log standard;
|
||||||
error_log /data/logs/dead-host-{{ id }}_error.log warn;
|
error_log /data/logs/dead_host-{{ id }}/error.log warn;
|
||||||
|
|
||||||
{{ advanced_config }}
|
{{ advanced_config }}
|
||||||
|
|
||||||
|
@ -12,8 +12,8 @@ server {
|
|||||||
#listen [::]:80;
|
#listen [::]:80;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
server_name default-host.localhost;
|
server_name default-host.localhost;
|
||||||
access_log /data/logs/default-host_access.log combined;
|
access_log /data/logs/default_host/access.log combined;
|
||||||
error_log /data/logs/default-host_error.log warn;
|
error_log /data/logs/default_host/error.log warn;
|
||||||
{% include "_exploits.conf" %}
|
{% include "_exploits.conf" %}
|
||||||
|
|
||||||
{%- if value == "404" %}
|
{%- if value == "404" %}
|
||||||
|
@ -8,8 +8,8 @@ server {
|
|||||||
|
|
||||||
server_name {{ domain_names | join: " " }};
|
server_name {{ domain_names | join: " " }};
|
||||||
|
|
||||||
access_log /data/logs/letsencrypt-requests_access.log standard;
|
access_log /data/logs/letsencrypt_requests/access.log standard;
|
||||||
error_log /data/logs/letsencrypt-requests_error.log warn;
|
error_log /data/logs/letsencrypt_requests/error.log warn;
|
||||||
|
|
||||||
include conf.d/include/letsencrypt-acme-challenge.conf;
|
include conf.d/include/letsencrypt-acme-challenge.conf;
|
||||||
|
|
||||||
|
@ -19,8 +19,8 @@ proxy_set_header Connection $http_connection;
|
|||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
access_log /data/logs/proxy-host-{{ id }}_access.log proxy;
|
access_log /data/logs/proxy_host-{{ id }}/access.log proxy;
|
||||||
error_log /data/logs/proxy-host-{{ id }}_error.log warn;
|
error_log /data/logs/proxy_host-{{ id }}/error.log warn;
|
||||||
|
|
||||||
{{ advanced_config }}
|
{{ advanced_config }}
|
||||||
|
|
||||||
|
@ -9,8 +9,8 @@ server {
|
|||||||
{% include "_hsts.conf" %}
|
{% include "_hsts.conf" %}
|
||||||
{% include "_forced_ssl.conf" %}
|
{% include "_forced_ssl.conf" %}
|
||||||
|
|
||||||
access_log /data/logs/redirection-host-{{ id }}_access.log standard;
|
access_log /data/logs/redirection_host-{{ id }}/access.log standard;
|
||||||
error_log /data/logs/redirection-host-{{ id }}_error.log warn;
|
error_log /data/logs/redirection_host-{{ id }}/error.log warn;
|
||||||
|
|
||||||
{{ advanced_config }}
|
{{ advanced_config }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user