- 论坛徽章:
- 0
|
环境:
apache2.2+tomcat
在apache上安装了awstats进行日志分析,httpd.conf相关部分如下:
ProxyPass /image !
ProxyPass /conf !
#for awstats
ProxyPass /icon !
ProxyPass /awstats !
ProxyPass /yd ajp://192.168.0.2:8056/yd retry=1
ProxyPass / ajp://192.168.0.2:8009/ retry=1
ProxyPassReverse /yd ajp://192.168.0.2:8056/
ProxyPassReverse / ajp://192.168.0.2:8009/
Alias /awstatsclasses "/usr/local/awstats-6.6/wwwroot/classes/"
Alias /awstatscss "/usr/local/awstats-6.6/wwwroot/css/"
Alias /awstatsicons "/usr/local/awstats-6.6/wwwroot/icon/"
ScriptAlias /awstats/ "/usr/local/awstats-6.6/wwwroot/cgi-bin/"
#
# This is to permit URL access to scripts/files in AWStats directory.
#
<Directory "/usr/local/awstats-6.6/wwwroot/cgi-bin">
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
之后访问
http://www.123456.com/awstats/awstats.pl?config=www.123456.com,可以显示awstats统计网页.
修改httpd.conf如下之后
<Directory "/usr/local/awstats-6.6/wwwroot/cgi-bin">
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
<Files ~ ".*awstat.*">
AuthUserFile /tmp/passwords
AuthName "Restricted Area For Customers"
AuthType Basic
Require valid-user
</Files>
</Directory>
访问http://www.123456.com/awstats/awstats.pl?config=www.123456.com,就显示报错页面。
那位大哥指点一下...........,在线等.... |
|