http_random_index
module#
The module processes requests ending with the slash character (/
) and picks a random file in a directory to serve as an index file. The module is processed before the http_index module.
Example Configuration#
location / {
random_index on;
}
Directives#
random_index#
- Syntax:
random_index
on | off.;- Default:
random_index off;
- Context:
location
Enables or disables module processing in a surrounding location.