mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-16 22:06:51 +00:00
move to a unified log, stopping all access logs for individual sites.
This commit is contained in:
@@ -7,8 +7,9 @@ server {
|
||||
{% include "_hsts.conf" %}
|
||||
{% include "_forced_ssl.conf" %}
|
||||
|
||||
access_log /data/logs/dead-host-{{ id }}_access.log standard;
|
||||
error_log /data/logs/dead-host-{{ id }}_error.log warn;
|
||||
#disable individual logs
|
||||
#access_log /data/logs/dead-host-{{ id }}_access.log standard;
|
||||
#error_log /data/logs/dead-host-{{ id }}_error.log warn;
|
||||
|
||||
{{ advanced_config }}
|
||||
|
||||
@@ -18,6 +19,8 @@ server {
|
||||
return 404;
|
||||
}
|
||||
{% endif %}
|
||||
# Custom
|
||||
include /data/nginx/custom/server_dead[.]conf;
|
||||
|
||||
}
|
||||
{% endif %}
|
||||
|
@@ -4,6 +4,7 @@
|
||||
server {
|
||||
set $forward_scheme {{ forward_scheme }};
|
||||
set $server "{{ forward_host }}";
|
||||
set $path "{{ forward_path }}";
|
||||
set $port {{ forward_port }};
|
||||
|
||||
{% include "_listen.conf" %}
|
||||
@@ -19,8 +20,9 @@ proxy_set_header Connection $http_connection;
|
||||
proxy_http_version 1.1;
|
||||
{% endif %}
|
||||
|
||||
access_log /data/logs/proxy-host-{{ id }}_access.log proxy;
|
||||
error_log /data/logs/proxy-host-{{ id }}_error.log warn;
|
||||
#disabling individual logs
|
||||
#access_log /data/logs/proxy-host-{{ id }}_access.log proxy;
|
||||
#error_log /data/logs/proxy-host-{{ id }}_error.log warn;
|
||||
|
||||
{{ advanced_config }}
|
||||
|
||||
@@ -64,7 +66,8 @@ proxy_http_version 1.1;
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
#do the proxy!
|
||||
proxy_pass $forward_scheme://$server:$port$path$request_uri;
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
|
@@ -9,8 +9,9 @@ server {
|
||||
{% include "_hsts.conf" %}
|
||||
{% include "_forced_ssl.conf" %}
|
||||
|
||||
access_log /data/logs/redirection-host-{{ id }}_access.log standard;
|
||||
error_log /data/logs/redirection-host-{{ id }}_error.log warn;
|
||||
#disabling individual logs
|
||||
#access_log /data/logs/redirection-host-{{ id }}_access.log standard;
|
||||
#error_log /data/logs/redirection-host-{{ id }}_error.log warn;
|
||||
|
||||
{{ advanced_config }}
|
||||
|
||||
|
Reference in New Issue
Block a user