mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #1421] 更新2.2.0之后打开配置文件出现沙箱相关的错误提示 #6564
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#6564
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 @YinHeng89 on GitHub (Nov 4, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1421
更新2.2.0之后打开配置文件出现沙箱相关的错误提示
nginx: [emerg] open() "/tmp/nginx-ui-sandbox-1451254628/ssl/ssl_common.conf" failed (2: No such file or directory) in /etc/nginx/sites-enabled/Memos:6 nginx: configuration file /tmp/nginx-ui-sandbox-1451254628/nginx.conf test failed exit status 1@YinHeng89 commented on GitHub (Nov 4, 2025):
感觉跟命名空间有关系,我研究一下
@YinHeng89 commented on GitHub (Nov 4, 2025):
找到问题了,因为配置文件里面单独引用的证书文件 “include ssl/ssl_common.conf;”导致沙箱再检查配置文件的是出错了
@0xJacky commented on GitHub (Nov 4, 2025):
可以将这个文件放在 /etc/nginx/snippets 内
@YinHeng89 commented on GitHub (Nov 4, 2025):
这样操作后还是失败,我目前先删除所有的命名空间绑定关系和命名空间了,暂时用不到这个功能,有时间我再多试试,感谢!
@0xJacky commented on GitHub (Nov 11, 2025):
优化了一下逻辑,现在会复制 Nginx 配置目录下除 sites-/streams- 之外的所有文件与子目录到沙箱。
sites/streams 为“按需拷贝”:仅把传入的站点与流(通常为当前命名空间)写入沙箱的 sites-enabled/、streams-enabled/,其余不拷贝。
主配置中对 sites-enabled、streams-enabled 的通配 include 被替换为沙箱内精确文件列表。