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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
=encoding utf-8
=head1 Name
syntax - Configuration file measurement units
=head1
nginx supports several measurement units for specifying
sizes, offsets, and time intervals within configuration files.
=head1 Sizes and offsets
Sizes can be specified in bytes, kilobytes, or megabytes
using the following suffixes:
=over
=item *
C<k> and C<K> for kilobytes
=item *
C<m> and C<M> for megabytes
=back
For example,
“C<1024>”, “C<8k>”, “C<1m>”.
Offsets can be also specified in gigabytes using the
C<g> or C<G> suffixes.
=head1 Time intervals
Time intervals can be specified in milliseconds, seconds,
minutes, hours, days and so on, using the following suffixes:
ms milliseconds
s seconds (default)
m minutes
h hours
d days
w weeks
M months, 30 days
y years, 365 days
Multiple units can be combined in a single value
by specifying them in the order from the most to the least significant,
and optionally separated by whitespace.
For example, “C<1h 30m>” specifies the same time
as “C<90m>” or “C<5400s>”.
=over
=item *
A value without a suffix means seconds.
=item *
It is recommended to always specify a suffix.
=item *
Certain time intervals can be specified only with a seconds resolution.
=back
|