ngx_http_random_index_module モジュール

設定例
ディレクティブ
     random_index

ngx_http_random_index_module モジュールはスラッシュ文字('/')で終わるリクエストを処理し、ディレクトリ内のランダムなファイルをindexファイルとして提供するために取り上げるでしょう。このモジュールは ngx_http_index_moduleモジュールの前に処理されます。

このモジュールはデフォルトではビルドされず、--with-http_random_index_module cofigureパラメータを有効にする必要があります。

設定例

location / {
    random_index on;
}

ディレクティブ

構文: random_index on | off;
デフォルト:
random_index off;
コンテキスト: 場所

取り囲んでいるlocation内で、モジュールの処理を有効または無効にします。

TOP
inserted by FC2 system