Meer vhost websites in webalizer {iis}

Pagina: 1
Acties:

  • boswandeling
  • Registratie: Oktober 2001
  • Laatst online: 20:54
Ik draai op dit moment voor 1 webalizer, maar nu heb een andere vhost met een eigen log en die wil ik graag ook laten webalizen, maar wel in dezelfde taak, niet dat ik straks 10 webalizer.exe moet runnen om alle stats bij te werken.

Is er mischien een manier om met 1x webalizer.exe te runnen en dat deze in 1x alle webalizers op andere vhosts update ?

  • Tomsworld
  • Registratie: Maart 2001
  • Niet online

Tomsworld

officieel ele fan :*

Uit de faq http://www.webalizer.org/faq.html
17. How can I easily process multiple virtual hosts?
There are many ways to process multiple virtual hosts on the same machine. The easiest way I have found, provided that each host generates it's own log file, is as follows:

Create a central directory for your configuration files. (I use /etc/webalizer)
Make a configuration file for each virtual host and place them in the central directory. Each configuration file should have at least the HostName (domain), OutputDir and LogFile configuration settings specified. You probably will want to specify other settings specific to the domain, such as HideReferrer, HideSite and maybe some others as well. Name the file the same as the domain name, and end it with a .conf extension, so you can easily tell what vhost the configuration is for.
To process all your virtual sites with a single command, a simple shell command can now be used:

for i in /etc/webalizer/*.conf; do webalizer -c $i; done
After you have it set up, to add a new host, all you need to do is create a new configuration file and put it in the directory. It will be automatically picked up the next time you run the command.
Dit is op linux, de enige manier is dus om een scriptje te maken die site na site processed.

"De kans dat een snee brood op een nieuw tapijt valt met de beboterde zijde onderaan, is recht evenredig met de prijs van het tapijt"


  • boswandeling
  • Registratie: Oktober 2001
  • Laatst online: 20:54
Ow dit is zeer goed, achteraf zelf ook kunnen vinden, sorry.

Maar wel veel dank voor de tip

  • HunterPro
  • Registratie: Juni 2001
  • Niet online
gewoon een batchfile maken dus :)

  • boswandeling
  • Registratie: Oktober 2001
  • Laatst online: 20:54
hoe bedoel je batch met welke commandos.

Helaas werkt de linux manier niet met de webalizer.exe manier van win2k.