Troubleshooting Techniques
[ 198 ]
What follows is an example of debug_http level output from a single request.
Some comments as to what is going on at each point are interspersed throughout:
<timestamp> [debug] <worker pid>#0: *<connection number> http cl:-1
max:1048576
The rewrite module is activated very early on in the request processing phase:
phase: 4
Access restrictions are checked:
FFFFFFFF 0100007F
The try_files directive is parsed next. The path to the file is constructed from any
string (http script copy) plus the value of any variable (http script var) in the
parameters to the try_files directive:
11
copy: "/"
"ImageFile.jpg"
The evaluated parameter is then concatenated with the alias or root for that
location, and the full path to the file is found:
file: "/ImageFile.jpg" "/data/images/ImageFile.jpg"
ImageFile.jpg"
Once the file is found, its contents are processed: