0xJacky / nginx-ui

Yet another WebUI for Nginx

Home Page:https://nginxui.com

Repository from Github https://github.com0xJacky/nginx-uiRepository from Github https://github.com0xJacky/nginx-ui

the log path is not under the paths in settings.NginxSettings.LogDirWhiteList

renziyou opened this issue · comments

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

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

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

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

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