ngx_http_random_index_module 模块

ngx_http_random_index_module 模块处理以斜杠字符(‘/’)结尾的请求,并在目录中挑选一个随机文件作为索引文件。该模块在 ngx_http_index_module 模块之前进行处理。

默认情况下不构建此模块,应使用 --with-http_random_index_module 配置参数启用它。

示例配置

location / {
    random_index on;
}

指令

random_index 指令

语 法:random_index on | off;
默认值:andom_index off;
上下文:location

在当前 location 配置块中启用 ngx_http_random_index_module 模块功能。

说说我的看法
全部评论(
没有评论
关于
本网站属于个人的非赢利性网站,转载的文章遵循原作者的版权声明,如果原文没有版权声明,请来信告知:hxstrive@outlook.com
公众号