Mastering Nginx
NGINX for the Developer [ 184 ] } location @resizer { internal; proxy_pass http://localhost:8080$uri; proxy_store /home/www/img$ ...
Chapter 7 [ 185 ] location = @empty { access_log off; empty_gif; } The size parameter to image_filter deserves special mention. ...
NGINX for the Developer [ 186 ] userid_name uid; userid_domain example.com; userid_path /; userid_expires 365d; userid_p3p 'poli ...
Chapter 7 [ 187 ] Preventing inadvertent code execution When trying to construct a configuration that does what you expect it to ...
NGINX for the Developer [ 188 ] Summary NGINX provides a number of ways to support developers wishing to integrate a high-perfor ...
Troubleshooting Techniques We live in an imperfect world. Despite our best intentions and planning, sometimes things don't turn ...
Troubleshooting Techniques [ 190 ] Error log file formats NGINX uses a couple of different logging functions that produce the er ...
Chapter 8 [ 191 ] A critical-level message means that NGINX cannot perform the requested action. If it was not already running, ...
Troubleshooting Techniques [ 192 ] Look at the following log file entry example: 2012/11/29 06:31:42 [error] 2589#0: *6437 clien ...
Chapter 8 [ 193 ] 2012/10/16 20:56:31 [emerg] 3039#0: "try_files" directive is not allowed here in /opt/nginx/conf/nginx.conf:16 ...
Troubleshooting Techniques [ 194 ] This means that you need to disable SSL session reuse. You can do this by setting the proxy_s ...
Chapter 8 [ 195 ] www 36663 0.0 0.2 20900 11992 ?? S 12:52PM 0:00.18 nginx: worker process (nginx) root 50725 0.0 0.1 18844 8408 ...
Troubleshooting Techniques [ 196 ] If the new binary still has a master process running, you can send it a TERM signal to force ...
Chapter 8 [ 197 ] Each level is to debug a specific module within NGINX. It also makes sense to configure a separate error log p ...
Troubleshooting Techniques [ 198 ] What follows is an example of debug_http level output from a single request. Some comments as ...
Chapter 8 [ 199 ] [debug] #0: * content phase: 14 [debug] #0: * content phase: 15 [debug] #0: * content phase: 16 The http fi ...
Troubleshooting Techniques [ 200 ] [debug] #0: * http write filter limit 0 [debug] #0: * http write filter 0000000001911050 [ ...
Chapter 8 [ 201 ] After the request has been processed, it can then be logged: [debug] #0: * http log handler [debug] #0: * hc ...
Troubleshooting Techniques [ 202 ] log_format imagelog '[$time_local] $image_file $image_type ' '$body_bytes_sent $status'; log_ ...
Chapter 8 [ 203 ] } location /images { access_log logs/example.com-images_access.log imagelog; } location /auth { auth_basic "au ...
«
6
7
8
9
10
11
12
13
14
15
»
Free download pdf