home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2002 August / INTERNET94.ISO / pc / software / windows / utils / analog / examples / virtdoms.cfg < prev    next >
Encoding:
Text File  |  2002-03-20  |  2.2 KB  |  46 lines

  1. # THIS CONFIGURATION FILE IS NOT READY TO USE WITHOUT EDITING!
  2. # USE ONLY THE FIRST OR THE SECOND HALF OF THIS FILE!
  3. #
  4. # There are basically two ways to set up your web server if you are serving
  5. # lots of virtual domains. The first, which is usually better if you don't
  6. # have many virtual domains, is to log them all to different logfiles. This
  7. # method is covered pretty thoroughly in one of the How-To documents, but here
  8. # is a summary.
  9. #
  10. # It's easy to analyse each single domain independently, by just specifying
  11. # its logfile. If you want to analyse all the domains together, you will need
  12. # commands like
  13. LOGFILE domain1.log http://www.domain1.com
  14. LOGFILE domain2.log http://www.domain2.com
  15. # This will add the prefix for that domain to the filenames in that logfile,
  16. # so that the same filename in two domains doesn't get confused. The command
  17. SUBDIR http://*/
  18. # or
  19. SUBDIR http://*/*
  20. # is useful make the Directory Report look better.
  21. #
  22. # The second way to set up your server is to log all the domains to one
  23. # logfile. If you do this, you have to log the virtual domain name on each
  24. # line so that you know which domain that line belongs to. You will then
  25. # probably need a LOGFORMAT command. For example, if you log the virtual
  26. # domain at the beginning of the line, which is otherwise in combined format,
  27. # you would want a LOGFORMAT command like
  28. LOGFORMAT (%v %S %j %u [%d/%M/%Y:%h:%n:%j] "%j%w%r%wHTTP%j" %c %b "%f" "%B")
  29. # You still need to add the prefix for the domain to each filename, and you
  30. # can do this by a LOGFILE command like
  31. LOGFILE alldomains.log http://www.%v.com
  32. # Then you can go ahead and analyse the whole site. As above, you will want
  33. # the command
  34. SUBDIR http://*/
  35. # or
  36. SUBDIR http://*/*
  37. # If you want to analyse just one of the domains, say domain1, you need the
  38. # command
  39. VHOSTINCLUDE domain1
  40. # Alternatively, if you often want to analyse just one of the domains, first
  41. # split the logfile into pieces corresponding to each virtual domain. This 
  42. # avoids the need to pass through the whole logfile each time.
  43. #
  44. # By Stephen Turner 1999-2001. No warranty for this file.
  45. # May be used and redistributed without restriction.
  46.