Jeremy Wadsack wrote:
Jeremy, thanks for your response. I think that Analog sees the VHOSTDuke Hillard ([EMAIL PROTECTED]; Tuesday, February 11, 2003 10:04 AM):I have a single log file with virtual hosts. I want each virtual host name to appear in the Directory, Failure, Redirection, and Request Reports. I've read the docs (including the information about utilizing an optional second argument with the LOGFILE command), how-to about virtual hosting, and the FAQ. I am using Solaris 8. Here is what I've tried. 1st-attempt.cfg LOGFILE /path/logfile %v SUBDIR http://%v/* With the above configuration, every report was empty. 2nd-attempt.cfg LOGFILE /path/logfile With the above configuration, all reports appear normal but don't include a virtual host name prepended to each line of the reports that I listed earlier. While this isn't the result that I desire, it is the result that I expected. This attempt was basically a sanity check. Other attempts were variants of my first attempt and all resulted in empty reports. I would appreciate any suggestions or advice that would help me prepend virtual host names to the lines that appear in the Directory, Failure, Redirection, and Request Reports. -- Duke HillardWith your first attempt, you should have gotten all reports except Directory with data unless Analog could not find the VHOST section in your LOGFORMAT. In this case it should throw a warning (if you have those enabled). For the SUBDIR, command, use this instead: SUBDIR http://*/* -- Jeremy Wadsack
because my config file specifies a log format. I didn't always specify one
but it became necessary after switching from one host to virtual hosting.
I won't list my entire config file in this message, but I will list commands
that seem relevant to the situation. In addition to these, I use ERRFILE
on the command line to specify an error file. I also tried SETTINGS ON
and everything seemed normal. Additional suggestions are appreciated.
-- Duke
APACHELOGFORMAT (%v %h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i")
WARNINGS -ER # ERRFILE command used & turning off empty reports
ERRLINELENGTH 80 # screen width (in columns) of ERRFILE
PROGRESSFREQ 10000 # notate ERRFILE after every 10K lines read in from logfile
DEBUG S
+------------------------------------------------------------------------
| TO UNSUBSCRIBE from this list:
| http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
| Digest version: http://lists.isite.net/listgate/analog-help-digest/
| Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
| List archives: http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------