1
|
●バックアップ取得
|
2
|
[root@web2 ~]# cp -p /etc/httpd/conf.d/munin.conf /etc/httpd/conf.d/munin.conf.org
|
3
|
|
4
|
●munin.confの編集
|
5
|
|
6
|
以下のように変更する。
|
7
|
|
8
|
[root@db2 ~]# diff -c /etc/httpd/conf.d/munin.conf /etc/httpd/conf.d/munin.conf.org
|
9
|
*** /etc/httpd/conf.d/munin.conf Tue Nov 22 17:58:34 2011
|
10
|
--- /etc/httpd/conf.d/munin.conf.org Wed Mar 25 09:28:08 2009
|
11
|
***************
|
12
|
*** 14,30 ****
|
13
|
#</Directory>
|
14
|
#
|
15
|
Alias /munin/ /var/www/munin/
|
16
|
! <Directory /var/www/munin/>
|
17
|
# Options None
|
18
|
# SSLRequireSSL
|
19
|
! order deny,allow
|
20
|
! deny from all
|
21
|
! Allow from 127.0.0.1
|
22
|
! Allow from 36.3.144.117
|
23
|
# AuthType Basic
|
24
|
# AuthUserFile /site/cfg/passwd
|
25
|
# AuthGroupFile /site/cfg/group
|
26
|
# AuthName "munin"
|
27
|
# require group munin
|
28
|
# Satisfy Any
|
29
|
! </Directory>
|
30
|
--- 14,28 ----
|
31
|
#</Directory>
|
32
|
#
|
33
|
Alias /munin/ /var/www/munin/
|
34
|
! #<Directory /var/www/munin/>
|
35
|
# Options None
|
36
|
# SSLRequireSSL
|
37
|
! # order deny,allow
|
38
|
! # deny from all
|
39
|
# AuthType Basic
|
40
|
# AuthUserFile /site/cfg/passwd
|
41
|
# AuthGroupFile /site/cfg/group
|
42
|
# AuthName "munin"
|
43
|
# require group munin
|
44
|
# Satisfy Any
|
45
|
! #</Directory>
|
46
|
|
47
|
|
48
|
●Apache再起動
|
49
|
[root@web2 ~]# /etc/init.d/httpd restart
|
50
|
Stopping httpd: [ OK ]
|
51
|
Starting httpd: [ OK ]
|