|
1 | 1 | # User & group that will be used by worker processes.
|
2 |
| -# For security use a user & group with limited previleges. |
| 2 | +# For security use a user & group with limited privileges. |
3 | 3 | user www-data www-data;
|
4 | 4 |
|
5 | 5 | # The file that will store a processes id of the main process.
|
@@ -31,24 +31,26 @@ http {
|
31 | 31 |
|
32 | 32 | # Max size & bucket size for the server names hash table.
|
33 | 33 | server_names_hash_max_size 1024;
|
34 |
| - server_names_hash_bucket_size 64; |
| 34 | + server_names_hash_bucket_size 32; |
35 | 35 |
|
36 | 36 | # Max size & bucket size for the mime types hash table.
|
37 | 37 | types_hash_max_size 2048;
|
38 |
| - types_hash_bucket_size 64; |
| 38 | + types_hash_bucket_size 32; |
39 | 39 |
|
40 | 40 | # Speed up static file transfers by using the sendfile() rather than the
|
41 | 41 | # read() and write() combination. sendfile() has the ability to transfer
|
42 |
| - # data from file descriptor. |
| 42 | + # data from the file descriptor. |
43 | 43 | sendfile on;
|
44 | 44 |
|
45 |
| - # Optimize the amount of data that being sent at once. Prevent it from |
46 |
| - # sending a partial frame. This will increases throughput, since TCP frames |
47 |
| - # will be filled up before being sent out. |
| 45 | + # Optimize the amount of data that is being sent at once. Prevent Nginx |
| 46 | + # from sending a partial frame. As a result it will increases the |
| 47 | + # throughput, since TCP frames will be filled up before being sent out. |
| 48 | + # You also need to activate the `sendfile` option. |
48 | 49 | tcp_nopush on;
|
49 | 50 |
|
50 |
| - # By default Nagle will delay sending the data for 200ms. To force a socket |
51 |
| - # to send the data in its buffer immediately we can turn this option on. |
| 51 | + # By default, the TCP stack implements a mechanism to delay sending the |
| 52 | + # data up to 200ms. To force a socket to send the data in its buffer |
| 53 | + # immediately we can turn this option on. |
52 | 54 | tcp_nodelay on;
|
53 | 55 |
|
54 | 56 | # A timeout of which a keep-alive connection will stay open. Longer
|
|
87 | 89 | # 75% reduction for most ASCII files (almost identical to level 9).
|
88 | 90 | gzip_comp_level 5;
|
89 | 91 |
|
90 |
| - # Don't compress small file that is unlikely to shrink much. The small |
| 92 | + # Don't compress a small file that is unlikely to shrink much. The small |
91 | 93 | # file is also usually ended up in larger file sizes after gzipping.
|
92 | 94 | gzip_min_length 256;
|
93 | 95 |
|
|
0 commit comments