【问题标题】:How to send random file from folder如何从文件夹发送随机文件
【发布时间】:2022-09-29 04:26:21
【问题描述】:

我想创建一个 nginx 文件服务器。主要标准是从机器上定义的文件夹中发送一个随机文件。这与用户尝试打开的 URL 无关。

如何发送随机文件? 我可以在 nginx.conf 中设置它吗?

谢谢 =)

    标签: nginx


    【解决方案1】:

    看看https://nginx.org/en/docs/http/ngx_http_random_index_module.html。该模块必须在构建时使用--with-http_random_index_module 启用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-02-14
      • 2021-08-20
      • 1970-01-01
      • 2014-07-29
      • 1970-01-01
      • 1970-01-01
      • 2017-05-08
      • 1970-01-01
      相关资源
      最近更新 更多