blob: 9337872ec1afbc1f40b0d8a2709309039e17da88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
=encoding utf-8
=head1 NAME
ngx_http_random_index_module - Module ngx_http_random_index_module
=head1
The C<ngx_http_random_index_module> module processes requests
ending with the slash character (‘C<E<sol>>’) and picks a random
file in a directory to serve as an index file.
The module is processed before the
L<ngx_http_index_module|ngx_http_index_module>
module.
This module is not built by default, it should be enabled with the
C<--with-http_random_index_module>
configuration parameter.
=head1 Example Configuration
location / {
random_index on;
}
=head1 Directives
=head2 random_index
B<syntax:> random_index I<C<on> E<verbar> C<off>>
B<default:> I<off>
B<context:> I<location>
Enables or disables module processing in a surrounding location.
|