モジュール 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 on | off;
デフォルト
random_index off;
コンテキスト location

周囲のロケーションでモジュールの処理を有効または無効にします。