webalizer安装完成后,所生成的网页有乱码,应该是中文的问题。
在google上搜索知道应该是gd不支持gb2312编码的问题。
索性就不要中文包了,直接把其中文包给删除掉。
rm usr/share/locale/zh/LC_MESSAGES/webalizer.mo
webalizer安装完成后,所生成的网页有乱码,应该是中文的问题。
在google上搜索知道应该是gd不支持gb2312编码的问题。
索性就不要中文包了,直接把其中文包给删除掉。
rm usr/share/locale/zh/LC_MESSAGES/webalizer.mo
虚拟主机的处理办法:
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:
1. Create a central directory for your configuration files. (I use /etc/webalizer)
2. 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.
3. 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.
[…] 但是目前的webalizer对中文支持不好,主要是因为GD的原因,因此也可以参考上文进行处理,网上也有针对此的patch,不想折腾。 然后就要创建一系列的针对虚拟主机的配置文件,主要是指定hostname和logfile。 然后,在使用webalizer之前已经有相当多的LOG,也可以使用webalizer一起来统计,这时候就需要用到mergelog命令来进行LOG的合并,首先安装mergelog: sudo aptitude install mergelog […]
发表回复