ngx_http_random_index_module 모듈
ngx_http_random_index_module 모듈은 슬래시 문자(‘/’)로 끝나는 요청을 처리하면서, 디렉터리 안에서 임의의 파일을 골라 인덱스 파일로 제공하는 모듈이에요. 이 모듈은 ngx_http_index_module 모듈보다 먼저 처리된다는 점 기억해 두세요.
이 모듈은 기본적으로 빌드되지 않으므로, --with-http_random_index_module 구성 매개변수로 활성화해야 해요.
출처: 문서
본문
예시 구성 (Example Configuration)
location / {
random_index on;
}
지시어 (Directives)
| Syntax: | random_index on | off; |
|---|---|
| Default: | random_index off; |
| Context: | location |
주변 location에서 모듈 처리를 활성화하거나 비활성화해요.