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

啟用或停用周圍 location 中的模組處理。