On this page
Module ngx_http_random_index_module
ngx_http_random_index_module
模块处理以斜杠字符(/
)结尾的请求,并在目录中选择一个随机文件作为索引文件。该模块在ngx_http_index_module模块之前进行处理。
默认情况下未构建此模块,应使用--with-http_random_index_module
配置参数启用它。
Example Configuration
location / {
random_index on;
}
Directives
Syntax: | random_index on | off; |
Default: | random_index off; |
Context: | location |
启用或禁用周围位置的模块处理。