| 142 | * 安裝 awstats 統計 deb 下載次數 |
| 143 | * 把 /usr/share/doc/awstats/examples/apache.conf 的內容加入 /etc/apache2/sites-enabled/classcloud.conf |
| 144 | {{{ |
| 145 | #!sh |
| 146 | <VirtualHost X.X.X.X:80> |
| 147 | ServerName www.classcloud.org |
| 148 | ErrorLog /var/log/classcloud-error_log |
| 149 | CustomLog /var/log/classcloud-access_log common |
| 150 | DocumentRoot "/var/www/hadoop" |
| 151 | <Directory "/var/www/hadoop"> |
| 152 | Order deny,allow |
| 153 | Allow from all |
| 154 | </Directory> |
| 155 | <Directory /var/lib/awstats> |
| 156 | Options None |
| 157 | AllowOverride None |
| 158 | Order allow,deny |
| 159 | Allow from all |
| 160 | </Directory> |
| 161 | <Directory /usr/share/awstats/icon> |
| 162 | Options None |
| 163 | AllowOverride None |
| 164 | Order allow,deny |
| 165 | Allow from all |
| 166 | </Directory> |
| 167 | Alias /icon/ /usr/share/awstats/icon/ |
| 168 | ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ |
| 169 | <Directory "/usr/lib/cgi-bin"> |
| 170 | AllowOverride None |
| 171 | Options ExecCGI -MultiViews +SymLinksIfOwnerMatch |
| 172 | Order allow,deny |
| 173 | Allow from all |
| 174 | </Directory> |
| 175 | </VirtualHost> |
| 176 | }}} |