Mungkin buat para System Administrator sudah
sering mengalami masalah seperti ini yang namanya "Internal Dummy Connection" yang dibuat pusing pada log apache yang mengakibatkan resource memory habis bisa
dibilang masalahanya tidak terlalu ribet tapi membuat pusing kepala. Nah sedikit berbagi mengenai penanganan seperti
ini, untuk menghilangkan error log Internal
Dummy Connection" pada log file apache dalam system operasi yang
berbasis linux..
Hasil penampakan accses log apache
#
tail -f /var/log/httpd/access.log
::1 - - [16/May/2014:18:55:31 +0700] "OPTIONS *
HTTP/1.0" 200 - "-" "Apache/2.2.15 (CentOS) (internal dummy
connection)"
::1 - - [16/May/2014:18:55:32 +0700] "OPTIONS *
HTTP/1.0" 200 - "-" "Apache/2.2.15 (CentOS) (internal dummy
connection)"
::1 - - [16/May/2014:18:55:33 +0700] "OPTIONS *
HTTP/1.0" 200 - "-" "Apache/2.2.15 (CentOS) (internal dummy
connection)"
::1 - - [16/May/2014:18:55:34 +0700] "OPTIONS *
HTTP/1.0" 200 - "-" "Apache/2.2.15 (CentOS) (internal dummy
connection)"
::1 - - [16/May/2014:18:55:35 +0700] "OPTIONS *
HTTP/1.0" 200 - "-" "Apache/2.2.15 (CentOS) (internal dummy
connection)"
::1 - - [16/May/2014:18:55:36 +0700] "OPTIONS *
HTTP/1.0" 200 - "-" "Apache/2.2.15 (CentOS) (internal dummy
connection)"
::1 - - [16/May/2014:18:55:45 +0700] "OPTIONS *
HTTP/1.0" 200 - "-" "Apache/2.2.15 (CentOS) (internal dummy
connection)"
::1 - - [16/May/2014:18:55:46 +0700] "OPTIONS *
HTTP/1.0" 200 - "-" "Apache/2.2.15 (CentOS) (internal dummy
connection)"
::1 - - [16/May/2014:18:55:47 +0700] "OPTIONS *
HTTP/1.0" 200 - "-" "Apache/2.2.15 (CentOS) (internal dummy
connection)"
::1 - - [16/May/2014:18:55:48 +0700] "OPTIONS *
HTTP/1.0" 200 - "-" "Apache/2.2.15 (CentOS) (internal dummy
connection)"
::1 - - [16/May/2014:18:56:17 +0700] "OPTIONS *
HTTP/1.0" 200 - "-" "Apache/2.2.15 (CentOS) (internal dummy
connection)"
::1 - - [16/May/2014:18:56:18 +0700] "OPTIONS *
HTTP/1.0" 200 - "-" "Apache/2.2.15 (CentOS) (internal dummy
connection)"
Lakukan konfigurasi seperti ini
#
vim /etc/httpd/conf/hattpd.conf
CustomLog logs/acces_log combined
Setelah itu ganti dan tambahkan kode seperti ini
SetEnvIf Remote_Addr "127\.0\.0\.1"
loopback
SetEnvIf Remote_Addr "::1" loopback
CustomLog logs/access_log combined env=!loopback
Simpan file konfigurasi dengan tekan Esc kemudian : wq
Kemudian restart service apache
# service httpd restart
Silahkan lihat kembali log apache
#
tail -f /var/log/httpd/access.log
Semoga
bermanfaat.. salam blogger
0 comments:
Posting Komentar