::1 - - [29/Apr/2013:18:14:17 +0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)" ::1 - - [29/Apr/2013:22:17:39 +0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)" ::1 - - [29/Apr/2013:22:17:40 +0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)" ::1 - - [29/Apr/2013:22:17:41 +0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)" ::1 - - [29/Apr/2013:22:17:42 +0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)" ::1 - - [29/Apr/2013:22:17:43 +0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)"
Untuk menghilangkan error log Internal dummy connection pada log file apache dalam sistem operasi Linux seperti diatas, kawan dapat melakukannya sebagai berikut :
Untuk Ubuntu :
$sudo vi /etc/apache2/sites-available/default
Temukan kode berikut:
# Possible values include: debug, info, notice, warn, error, crit,
LogLevel warn ..... dan seterusnya
Kemudian ganti dengan :
# Possible values include: debug, info, notice, warn, error, crit,
LogLevel warn
SetEnvIf Remote_Addr "127\.0\.0\.1" loopback
SetEnvIf Remote_Addr "::1" loopback
CustomLog ${APACHE_LOG_DIR}/access.log combined env=!loopback
Setelah selesai simpan dan restart Apache2
Untuk Redhat dan Fedora ataupun CentOS
$sudo vi /etc/httpd/conf/httpd.conf Temukan kode seperti berikut : CustomLog logs/access_log combined Setelah itu ganti dengan kode dibawah ini: SetEnvIf Remote_Addr "127\.0\.0\.1" loopback SetEnvIf Remote_Addr "::1" loopback CustomLog logs/access_log combined env=!loopback Simpan dan restart Apache $sudo service httpd restart
Error log berikut cukup penting untuk diperbaiki karena memakan lumayan banyak resources memory yang ada, kawan juga dapat menghemat error log yang keluar untuk menghemat memory dengan menambahkan file index.html kosong di default dokumen root.
Terima kasih
No comments:
Post a Comment