"The second argument specifies what will be written to the
log file. It can specify either a
***nickname*** defined by
a previous
LogFormat
directive, or it can be an explicit ***
format*** string as
described in the
log formats section.
"
Either you use this way:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog /home/user/logs/XXX.access_log combined
Or this way:
CustomLog "/home/user/logs/XXX.access_log"
"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
You see, "combined" is just a nickname to the LogFormat, you can add something like "my-site-special-log-format" and as long as you call it on the CustomLog it will work, cause it's just an alias.