[GH-ISSUE #1636] stop writing default_host.log #1227

Closed
opened 2026-02-26 06:36:19 +03:00 by kerem · 2 comments
Owner

Originally created by @wpresident on GitHub (Dec 7, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1636

How can i disable constant writing to this file?
image

Originally created by @wpresident on GitHub (Dec 7, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1636 How can i disable constant writing to this file? ![image](https://user-images.githubusercontent.com/19406558/145034419-44293356-dade-4280-b4e0-45cfa4b9f440.png)
kerem closed this issue 2026-02-26 06:36:19 +03:00
Author
Owner

@freender commented on GitHub (Dec 14, 2021):

Technically default-host.log can be disabled in /nginx_proxy_manager/data/nginx/default_host/site.conf
You can comment access_log line and reload nginx proxy manager

HOWEVER I strongly discourage doing this:

  1. You should understand that the point of the default-host.log is to store all access logs for default endpoint. This is exactly what NGINX does
  2. The best way to handle that would be:
    a) Logging default-host.log and checking it periodically
    b) Blocking connection attempts from parasite IP address / Subnet / Country. The second option cannot be implemented by NPM out of the box.
<!-- gh-comment-id:993060422 --> @freender commented on GitHub (Dec 14, 2021): Technically default-host.log can be disabled in /nginx_proxy_manager/data/nginx/default_host/site.conf You can comment access_log line and reload nginx proxy manager HOWEVER I strongly discourage doing this: 1) You should understand that the point of the default-host.log is to store all access logs for default endpoint. This is exactly what NGINX does 2) The best way to handle that would be: a) Logging default-host.log and checking it periodically b) Blocking connection attempts from parasite IP address / Subnet / Country. The second option cannot be implemented by NPM out of the box.
Author
Owner

@wpresident commented on GitHub (Dec 16, 2021):

thank you. solved via router firewall

<!-- gh-comment-id:995653498 --> @wpresident commented on GitHub (Dec 16, 2021): thank you. solved via router firewall
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#1227
No description provided.