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

I know this question is stupid and often answered, but so far no solution has worked for me. I use 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 apache, the access log will show 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 because my server has a lot of traffic, in which case dummy connections are very bad for server performance. Ask me what you want to know about server configurations.

Thank you very much.

+4
source share
1 answer

Add this line to the third

 SetEnvIf User-Agent ".*internal dummy connection.*" loopback 
+1
source

Source: https://habr.com/ru/post/1443546/


All Articles