为域设置AWStats,以便不从域访问

我已经看到AWStats设置说明指定了如何设置Apache,以便您可以查看每个站点的统计信息,如下所示:

http://www.mydomain.com/awstats

有谁知道我可以如何configuration它与“mydomain.com”统计的另一个域的工作。 比如像这样的东西:

http://www.someotherdomain.com/awstats/www.mydomain.com/

AWStats通常configuration为以cron作业运行。 它有两个部分。

1.)运行数据库的更新。 这摄取日志文件。 2.)生成输出。 这是你需要看的部分。

以下是我为我的服务器上的某些网站所做的一个示例:

 00 7 * * * perl /usr/lib/cgi-bin/awstats.pl -config = blackbirds.tv -output -staticlinks> /var/www/manticore/stats/awstats.blackbirds.html 

/ var / www / manticore文件夹是服务器主域的主文件夹(www.manticore-uk.com,这是活的,所以去看看,默认网站实际上是空的,你会得到一个错误,但awstats文件都在那里)。

正如你所看到的,这是通过一个简单的输出redirect完成的。 而且,对不起,是的,这只能在Linux下以这种方式工作。 我还没有想法如何在Windows下做到这一点。

开箱即用,awstats能够为您做到这一点:

http://www.someotherdomain.com/awstats/awstats.pl?config=www.mydomain.com

这会显示www.mydomain.com的统计信息

这假定someotherdomain.com是与mydomain.com托pipe在同一台服务器上

您应该能够在同一台服务器上通过awstats使用这种方法来监控您正在监控的任何虚拟主机。