phhttpd keeps interesting logs on a virtual server granularity. The action of recording lots is specified by including an entity in the log section of a virtual for the log source that wants to be kept. There is an entity for each source of logging, and attributes to that entity define where it is logged to. It looks something like this:
<logs> <LOGSOURCE mode=OCTALMODE file=PATH> ... </logs> |
mode is the octal permissions mode of the file that is to be opened. As it is parsed by dumb routines, a leading 0 is highly recommended. fileis the file the logged events will be written to. The LOG_SOURCE is one of:
access | Successfully answered requests |
agent | The value given in the 'User-Agent' HTTP request header |
referer | The string given in the 'Referer' HTTP request header |