我是 apache 的新手,我正在尝试在我的 ubuntu 12.04 服务器上设置 AWStats。我遵循了 Ubuntu docs 上的指南。
我根据说明进行了设置,awstats 能够成功地从 apache 日志生成初始统计信息。我将 awstats 的链接放在默认的虚拟主机文件中。但是,当我尝试运行时http://server-ip-address:8080/awstats/awstats.pl,我得到:
Error: SiteDomain parameter not defined in your config/domain file. You must edit it for using this version of AWStats.
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
Run Code Online (Sandbox Code Playgroud)
这是我的/etc/apache2/sites-available/default文件:
<VirtualHost *:8080>
ServerAdmin webmaster@localhost
DocumentRoot /home/saad/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/saad/www/>
Options Indexes FollowSymLinks …Run Code Online (Sandbox Code Playgroud)