diff --git a/backend/templates/dead_host.conf b/backend/templates/dead_host.conf index 7a06469a..d9ded166 100644 --- a/backend/templates/dead_host.conf +++ b/backend/templates/dead_host.conf @@ -10,8 +10,8 @@ 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; + access_log /data/logs/dead-host-{{ domain_names | first }}_access.log standard; + error_log /data/logs/dead-host-{{ domain_names | first }}_error.log warn; {{ advanced_config }} diff --git a/backend/templates/proxy_host.conf b/backend/templates/proxy_host.conf index d23ca46f..c8de4b7e 100644 --- a/backend/templates/proxy_host.conf +++ b/backend/templates/proxy_host.conf @@ -22,8 +22,8 @@ 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; + access_log /data/logs/proxy-host-{{ domain_names | first }}_access.log proxy; + error_log /data/logs/proxy-host-{{ domain_names | first }}_error.log warn; {{ advanced_config }} diff --git a/backend/templates/redirection_host.conf b/backend/templates/redirection_host.conf index 7dd36079..5ec30870 100644 --- a/backend/templates/redirection_host.conf +++ b/backend/templates/redirection_host.conf @@ -12,8 +12,8 @@ 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; + access_log /data/logs/redirection-host-{{ domain_names | first }}_access.log standard; + error_log /data/logs/redirection-host-{{ domain_names | first }}_error.log warn; {{ advanced_config }}