ngx_http_random_index_module

ngx_http_random_index_module 模块处理以 / 结尾的请求,然后随机选择目录中的一个文件作为索引文件展示,该模块优先于 ngx_http_index_module 之前处理。

该模块默认不会被构建到 nginx 中,需要在编译时加入 --with-http_random_index_module 配置参数启用。

配置示例

location / {
    random_index on;
}

random_index

- 说明
语法 random_index on | off;
默认 random_index off;
上下文 location

启用或禁用 location 周边的模块处理。

原文档

Copyright © Kilvn 2021 all right reserved,powered by Gitbook最后更新时间: 2021-06-07 17:02:04

results matching ""

    No results matching ""