You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[`server_names_hash_max_size` and `server_names_hash_bucket_size`](#the-server_names_hash_max_size-and-server_names_hash_bucket_size-directives)
46
-
*`types_hash_max_size` and `types_hash_bucket_size`](#the-types_hash_max_size-and-types_hash_bucket_size-directives)
46
+
*[`server_names_hash_max_size`](#the-server_names_hash_max_size-and-server_names_hash_bucket_size-directives) and [`server_names_hash_bucket_size`](#the-server_names_hash_max_size-and-server_names_hash_bucket_size-directives)
47
+
*[`types_hash_max_size`](#the-types_hash_max_size-and-types_hash_bucket_size-directives) and [`types_hash_bucket_size`](#the-types_hash_max_size-and-types_hash_bucket_size-directives)
*[Gzip related directives](#gzip-related-directives)
53
+
*[Credits](#credits)
52
54
53
55
## Requirements
54
56
@@ -871,7 +873,7 @@ However, nowadays chances are so small that our files won't fill up the buffer i
871
873
tcp_nodelay on;
872
874
```
873
875
874
-
### The `keepalive_timeout`timeout
876
+
### The `keepalive_timeout`directive
875
877
This directive is used to set a timeout of which a keep-alive connection will stay open. The longer the duration is, the better for the client, especially on SSL connection. The downside is the worker connection is occupied much longer.
876
878
877
879
```nginx
@@ -892,6 +894,13 @@ There are also several other directives you can set related to gzip:
892
894
*`gzip_proxied` => Enables or disables gzipping of responses for proxied connection.
893
895
*`gzip_vary` => Enables or disables inserting the “Vary: Accept-Encoding” header in response.
894
896
897
+
## Credits
898
+
899
+
All of these configurations setup are gathered from the following resources:
900
+
901
+
*[Nginx Documentation](http://nginx.org/en/docs/)
902
+
*[Nginx Configs Boilerplate](https://github.com/h5bp/server-configs-nginx) by [h5bp](https://h5bp.github.io)
903
+
*[Nginx Optimization](https://t37.net/nginx-optimization-understanding-sendfile-tcp_nodelay-and-tcp_nopush.html) by [Fred de Villamil](https://t37.net)
0 commit comments