[GH-ISSUE #912] the log path is not under the paths in settings.NginxSettings.LogDirWhiteList #3591

Closed
opened 2026-02-28 11:56:48 +03:00 by kerem · 2 comments
Owner

Originally created by @renziyou on GitHub (Mar 11, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/912

Info (please complete the following information):

  • Server OS: [Ubuntu 24.04.2 LTS]
  • Server Arch: [x86]
  • Nginx Version: [1.24.0 ]
  • Nginx UI Version: [v2.0.0-rc.4]

请问这问题怎么解决

Additional context
Add any other context about the problem here.

Image

Image

Originally created by @renziyou on GitHub (Mar 11, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/912 **Info (please complete the following information):** - Server OS: [Ubuntu 24.04.2 LTS] - Server Arch: [x86] - Nginx Version: [1.24.0 ] - Nginx UI Version: [v2.0.0-rc.4] 请问这问题怎么解决 **Additional context** Add any other context about the problem here. ![Image](https://github.com/user-attachments/assets/3157233e-b85f-4fe6-999e-5737da3411d8) ![Image](https://github.com/user-attachments/assets/c9bbcd5a-a0b1-450b-a4f7-fd9d09a16a12)
kerem 2026-02-28 11:56:48 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@0xJacky commented on GitHub (Mar 11, 2025):

Image 如果自定义了错误日志的路径,需要确保错误日志在白名单路径中,显然 stderr 是不在这里面的。

<!-- gh-comment-id:2713385527 --> @0xJacky commented on GitHub (Mar 11, 2025): <img width="182" alt="Image" src="https://github.com/user-attachments/assets/eca32da8-3828-4e80-837e-4d164e12734b" /> 如果自定义了错误日志的路径,需要确保错误日志在白名单路径中,显然 stderr 是不在这里面的。
Author
Owner

@0xJacky commented on GitHub (Mar 11, 2025):

如果你需要同时记录日志到文件和 stderr 中,应该在 nginx 配置文件中配置

error_log /path/to/error.log;
error_log stderr;

然后 nginx-ui 的配置文件中指定错误日志为 /path/to/error.log

<!-- gh-comment-id:2713394256 --> @0xJacky commented on GitHub (Mar 11, 2025): 如果你需要同时记录日志到文件和 stderr 中,应该在 nginx 配置文件中配置 ``` error_log /path/to/error.log; error_log stderr; ``` 然后 nginx-ui 的配置文件中指定错误日志为 `/path/to/error.log`。
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-ui#3591
No description provided.