Mastering Nginx

(Ron) #1
Chapter 8

[ 199 ]

[debug] #0: * content phase: 14
[debug] #0: * content phase: 15
[debug] #0: * content phase: 16

The http filename is the full path to the file to be sent:


[debug] #0: * http filename:
"/data/images/ImageFile.jpg"

The static module receives the file descriptor for this file:


[debug] #0: * http static fd:
15

Any temporary content in the body of the response is no longer needed:


[debug] #0: * http set discard
body

Once all information about the file is known, NGINX can construct the full


response headers:


[debug] #0: * HTTP/1.1 200 OK

Server: nginx/


Date:


Content-Type:


Content-Length:


Last-Modified:


Connection: keep-alive


Accept-Ranges: bytes


The next phase involves any transformations to be performed on the file due to


output filters that may be active:


[debug] #0: * http write
filter: l:0 f:0 s:219
[debug] #0: * http output
filter "/ImageFile.jpg?file=ImageFile.jpg"
[debug] #0: * http copy
filter: "/ImageFile.jpg?file=ImageFile.jpg"
[debug] #0: * http postpone
filter "/ImageFile.jpg?file=ImageFile.jpg" 00007FFF30383040
[debug] #0: * http write
filter: l:1 f:0 s:480317
Free download pdf