mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 16:55:56 +03:00
[GH-ISSUE #1236] Alpine Linux 中 nginx.conf 配置识别有误 #7794
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#7794
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 @LogicDX342 on GitHub (Jul 16, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1236
环境为 Alpine 3.22
nginx 的 默认配置文件 中,已有位于根层级的
include /etc/nginx/conf.d/*.conf;,但 nginx-ui 依然会报错Nginx conf not include conf.d directory。点击自动修复,nginx-ui 会在
http块中增加这行配置,导致conf.d中不应在http块中的配置文件报错,比如 nginx-mod-stream 中的stream.conf文件, 以及 nginx-ui 自己生成的stub_status.conf@0xJacky commented on GitHub (Jul 16, 2025):
抱歉,我们的设计是 include /etc/nginx/conf.d/*.conf; 应该位于 server {} block 中
@LogicDX342 commented on GitHub (Jul 16, 2025):
请问目前有打算做兼容吗
@0xJacky commented on GitHub (Jul 16, 2025):
没有这个打算,因为 debian 默认的标准就是放在 server block 中的
@LogicDX342 commented on GitHub (Jul 16, 2025):
ok,那我手改一下吧