使用 Nginx 在 TAR 存档中提供文件

问题描述 投票:0回答:1

你可能知道。 TAR 存档以其原始形状存储文件。因此,为了使用 Nginx 为 TAR 存档内的文件提供服务,只应向 Nginx 提供偏移值和文件长度。 我如何给 Nginx 偏移量和内容长度? 并有一个这样的链接:

http://example.com/Archive.tar/path/to/file.bin

另请注意,我需要 nginx 来接受 Range 标头并能够恭敬地提供服务

http nginx tar
1个回答
0
投票

如果你不想使用任何 CGI 脚本,你需要一个自定义的 nginx 模块。

遵循本指南:http://nginx.org/en/docs/dev/development_guide.html

© www.soinside.com 2019 - 2024. All rights reserved.