模块 ngx_http_random_index_module
| Example Configuration Directives 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 |
启用或禁用周围位置的模块处理。
