Apache试图从munin的/var/cache加载
我正试图让Munin网页通过Debian蚀刻上的SSL在Apache2下工作。我的网站配置为: NameVirtualHost 1.2.3.4:80Apache试图从munin的/var/cache加载,apache,Apache,我正试图让Munin网页通过Debian蚀刻上的SSL在Apache2下工作。我的网站配置为: NameVirtualHost 1.2.3.4:80 <VirtualHost www.mydomain.org:80> ServerName www.mydomain.org ... <Directory /var/www/https> AllowOverride None Order deny,allow Deny from all <
<VirtualHost www.mydomain.org:80>
ServerName www.mydomain.org
...
<Directory /var/www/https>
AllowOverride None
Order deny,allow
Deny from all
</Directory>
...
</VirtualHost>
<VirtualHost www.mydomain.org:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/https/
SSLEngine On
SSLCertificateFile /etc/blah
SSLCertificateKeyFile /etc/blah
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
...
<LOCATION /munin>
Options Indexes FollowSymLinks MultiViews
AuthType Basic
AuthName "Munin Users"
AuthUserFile /etc/apache2/auth-files/munin
<limit GET PUT POST>
require valid-user
</limit>
Order allow,deny
allow from all
</LOCATION>
...
</VirtualHost>
index.html文件将文件名列出为localdomain/localhost.localdomain/apache\u access.html
我没有加载缓存模块:
root@etch:/etc/apache2/mods-enabled# ls
alias.conf authz_default.load autoindex.load dir.conf mime.load reqtimeout.conf ssl.load alias.load authz_groupfile.load cgi.load dir.load negotiation.conf reqtimeout.load status.conf auth_basic.load authz_host.load dav.load env.load negotiation.load rewrite.load status.load auth_digest.load authz_user.load dav_fs.conf include.load php5.conf setenvif.conf authn_file.load autoindex.conf dav_fs.load mime.conf php5.load setenvif.load
我没有在apache配置中启用缓存的任何指令:
root@etch:/etc/apache2# grep -i cache *
apache2.conf:#SSLSessionCache dbm:/var/cache/apache2/ssl_cache
apache2.conf:SSLSessionCache none
(dbm缓存线被注释掉了,我已经多次重新启动apache。)
(返回零行。)
那么,为什么apache要从/var/cache目录而不是/var/www/https/munin目录加载文件呢?非常感谢您的帮助。我不知道它在Debian上是如何工作的,但是用于munin的Ubuntu包在
/etc/apache2/conf.d/munin
中创建了一个配置文件
此配置文件为/munin
指定别名:别名/munin/var/cache/munin/www
/var/cache/munin/www
是最新munin版本的默认htmldir值
root@etch:/etc/apache2# grep -i cache *
apache2.conf:#SSLSessionCache dbm:/var/cache/apache2/ssl_cache
apache2.conf:SSLSessionCache none
root@etch:/etc/apache2/sites-enabled# grep -i cache *