mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #606] 请问日志总是显示不出来? #7425
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#7425
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @joylijoy on GitHub (Oct 10, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/606
在LogDirWhiteList =处填的是nginx的日志路径,但登陆nignx-ui后,显示The log path is not under the paths in LogDirWhiteList. 是为什么,谢谢
@0xJacky commented on GitHub (Oct 10, 2024):
填写的是日志的文件夹路径
@joylijoy commented on GitHub (Oct 10, 2024):
我填的是这个呀,就是存放nginx的access.log和error.log的日志的路径对吧?
@0xJacky commented on GitHub (Oct 10, 2024):
不是,填的是文件夹的路径,然后改完记得 restart nginx-ui
@joylijoy commented on GitHub (Oct 10, 2024):
填完了日志文件夹的路径后,报这个问题:log file is not regular file

@0xJacky commented on GitHub (Oct 10, 2024):
/apps/openresty/nginx/logs 这个文件是软连接吗?
@joylijoy commented on GitHub (Oct 10, 2024):
不是,是真实的文件夹

@0xJacky commented on GitHub (Oct 10, 2024):
只支持单个文件
比如
AccessLogPath = /var/logs/nginx/access.log
LogDirWhiteList = /var/logs/nginx
@joylijoy commented on GitHub (Oct 10, 2024):
可以了,谢谢!
@xlcaptain commented on GitHub (Nov 7, 2024):
如果是docker-compose来启动服务的话,这个LogDirWhiteList设置以环境变量不太行,这怎么办呢?是需要在容器中修改app.ini的配置吗?在容器中我没有找到go的app.ini这个配置文件,请问能够解答吗?
@xlcaptain commented on GitHub (Nov 7, 2024):
@0xJacky
@0xJacky commented on GitHub (Nov 7, 2024):
@xlcaptain 文档要看全,
https://nginxui.com/zh_CN/guide/env.html#nginx
NGINX_UI_NGINX_LOG_DIR_WHITE_LIST@xlcaptain commented on GitHub (Nov 7, 2024):
@0xJacky 明白了,谢谢。配置似乎成功:




但是,日志中没有产生日志,我已经成功在nginx-ui中配置了我的个人网站的转发,并且能够成功获取,但是没有日志:
以下是我的终端docker-compose日志以及容器中就日志文件的权限截图:
望查看,十分感谢您的回答!
@xlcaptain commented on GitHub (Nov 8, 2024):
已找到原因,需要根据你的nginx配置的log路劲来进行填写