模块 ngx_http_random_index_module
| 示例配置 指令 random_index |
模块 ngx_http_random_index_module 处理以斜杠字符(‘/’)结尾的请求,并选择一个目录中的随机文件作为索引文件提供。该模块在 ngx_http_index_module 模块之前处理。
此模块不是默认构建的,应该使用 --with-http_random_index_module 配置参数启用。
示例配置
location / {
random_index on;
}
指令
| 语法: | random_index |
|---|---|
| 默认: |
random_index off; |
| 上下文: | location |
在周围位置启用或禁用模块处理。
