Mastering Nginx
A Configuration Guide [ 24 ] # the product of this number and the number of worker_processes # indicates how many simultaneous c ...
Chapter 2 [ 25 ] Client directives This set of directives deals with the aspects of the client connection itself, as well as wit ...
A Configuration Guide [ 26 ] Directive Explanation keepalive_timeout Specifies how long a keep-alive connection will stay open. ...
Chapter 2 [ 27 ] Directive Explanation open_file_cache_min_uses Configures the minimum number of uses for a file within the inac ...
A Configuration Guide [ 28 ] Directive Explanation variables_hash_bucket_size It specifies the bucket size used to hold the rema ...
Chapter 2 [ 29 ] Directive Explanation tcp_nodelay Enables or disables the TCP_NODELAY option for keep-alive connections. tcp_no ...
A Configuration Guide [ 30 ] The virtual server section Any context beginning with the keyword server is considered a "virtual s ...
Chapter 2 [ 31 ] Parameter Explanation Comment deferred Sets the TCP_DEFER_ ACCEPT option to use a deferred accept() call. Only ...
A Configuration Guide [ 32 ] Besides a normal string, NGINX will accept a wildcard as a parameter to the server_name directive: ...
Chapter 2 [ 33 ] This logic is expressed in the following flowchart: Host header matches server_name with a wildcard at the fron ...
A Configuration Guide [ 34 ] Besides this usage, default_server may also be helpful in configuring a number of virtual servers w ...
Chapter 2 [ 35 ] Regular expressions are matched in the order in which they are found in the configuration file. The regular ex ...
A Configuration Guide [ 36 ] location @mongrel { proxy_pass http://appserver; } Here, an implicit directory index is tried if th ...
Chapter 2 [ 37 ] NGINX can proxy the IMAP, POP3, and SMTP protocols. The following table lists the directives that are available ...
A Configuration Guide [ 38 ] Directive Explanation ssl_certificate_key It specifies the path to the PEM-encoded SSL secret key f ...
Chapter 2 [ 39 ] http { include /opt/local/etc/nginx/mime.types; default_type application/octet-stream; sendfile on; tcp_nopush ...
A Configuration Guide [ 40 ] Summary In this chapter, we have seen how the NGINX configuration file is built. Its modular nature ...
Using the Mail Module NGINX was designed to not only serve web traffic, but also to provide a means of proxying mail services. I ...
Using the Mail Module [ 42 ] The following diagram will help visualize how this works: An incoming request will be handled on a ...
Chapter 3 [ 43 ] This is an important point in designing an architecture that contains a proxy server— the proxy host will need ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf