Nginx

ngx_http_random_index_module

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关闭;
语境:位置

启用或禁用周围位置的模块处理。