Mastering Nginx
The NGINX HTTP Server [ 124 ] The following table summarizes these directives: Table: HTTP file-path directives Directive Explan ...
Chapter 6 [ 125 ] server { resolver 192.168.100.2 valid=300s; } Table: Name resolution directives Directive Explanation resolver ...
The NGINX HTTP Server [ 126 ] location / { proxy_pass http://upstream.example.com; } } Client interaction There are a number of ...
Chapter 6 [ 127 ] Directive Explanation ignore_invalid_headers Disables ignoring headers with invalid names (default is on). A v ...
The NGINX HTTP Server [ 128 ] location / { # any server-level errors for this host will be directed # to a custom application ha ...
Chapter 6 [ 129 ] First, let's take a look at the different configuration directives that will help us achieve our goal: Table: ...
The NGINX HTTP Server [ 130 ] Directive Explanation limit_req_zone Specifies the key to be limited in limit_ req as the first pa ...
Chapter 6 [ 131 ] http { limit_req_zone $binary_remote_addr zone=requests:10m rate=1r/s; limit_req_log_level warn; server { limi ...
The NGINX HTTP Server [ 132 ] Combining these different rate limitations enables us to create a configuration that is very flexi ...
Chapter 6 [ 133 ] Restricting access In the previous section, we explored ways to limit abusive access to websites running under ...
The NGINX HTTP Server [ 134 ] deny all; } This configuration will allow access to the /stats URI from the localhost only. To res ...
Chapter 6 [ 135 ] puts o; exit end end initialize an array of ASCII characters to be used for the salt ascii = ('a'..'z').to_a + ...
The NGINX HTTP Server [ 136 ] # if there's a comment, insert it if $comm $lines << "#{$user}:#{pass}:#{$comm}\n" else $lin ...
Chapter 6 [ 137 ] satisfy any; } If, instead, the requirements are for a configuration in which the user must come from a certai ...
The NGINX HTTP Server [ 138 ] Directive Explanation mp4_buffer_ size Sets the initial buffer size for delivering MP4 files. mp4_ ...
Chapter 6 [ 139 ] [emerg] #0: the duplicate "" variable in : They are also not made for macro expansion in the configuration—th ...
The NGINX HTTP Server [ 140 ] Variable Name Value $pid The process ID of the worker process. $query_string An alias for $args. $ ...
Chapter 6 [ 141 ] Variable Name Value $status The response's status. $tcpinfo_rtt $tcpinfo_rttvar $tcpinfo_snd_cwnd $tcpinfo_rcv ...
The NGINX HTTP Server [ 142 ] Directive Explanation fastcgi_cache_bypass One or more string variables, which when non-empty or n ...
Chapter 6 [ 143 ] Directive Explanation fastcgi_cache_use_stale The cases under which it is acceptable to serve stale cached dat ...
«
3
4
5
6
7
8
9
10
11
12
»
Free download pdf