Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache (internal dummy connection) crashes server with too many logs

i know that this question is silly and often answered, but no solution worked for me by now. I'm using OpenSuse and Apache2 and added

SetEnvIf Remote_Addr "127\.0\.0\.1" loopback
SetEnvIf Remote_Addr "::1" loopback
CustomLog /var/log/apache2/access_log combined env=!loopback

but if i restart the apache, the access log shows me

::1 - - [01/Nov/2012:23:18:06 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)"
::1 - - [01/Nov/2012:23:18:16 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)"
::1 - - [01/Nov/2012:23:18:22 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)"
::1 - - [01/Nov/2012:23:18:34 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)"
::1 - - [01/Nov/2012:23:18:35 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)"
::1 - - [01/Nov/2012:23:18:36 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)"
::1 - - [01/Nov/2012:23:18:37 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)"
::1 - - [01/Nov/2012:23:19:34 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)"
::1 - - [01/Nov/2012:23:19:52 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)"

Can someone help me please, because my server have much traffic and in this case, the dummy connections are very bad for performance of the server. Ask me anything you want to know about the server configs.

Thanks a lot.

like image 218
Maik Avatar asked Nov 13 '22 18:11

Maik


1 Answers

Add this line in third

SetEnvIf User-Agent ".*internal dummy connection.*" loopback
like image 195
Ago Avatar answered Nov 26 '22 15:11

Ago