apache internal dummy connection 로그 생성 방지하기
apache 가 정상적으로 응답하지 않는 현상도 발생
1 2 3 4 5 6 7 |
::1 - - [26/Mar/2020:16:10:30 +0900] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g (internal dummy connection)" ::1 - - [26/Mar/2020:16:10:31 +0900] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g (internal dummy connection)" ::1 - - [26/Mar/2020:16:10:32 +0900] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g (internal dummy connection)" ::1 - - [26/Mar/2020:16:10:33 +0900] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g (internal dummy connection)" ::1 - - [26/Mar/2020:16:10:35 +0900] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g (internal dummy connection)" |
해결책 : /etc/apache2/apache2.conf
1 2 3 4 5 |
SetEnvIf Remote_Addr "::1" loopback SetEnvIf Remote_Addr "127\.0\.0\.1" loopback CustomLog ${APACHE_LOG_DIR}/access_log combined env=!loopback |
참조 : https://cwiki.apache.org/confluence/display/HTTPD/InternalDummyConnection https://allthatlinux.com/dokuwiki/doku.php?id=access_log%EC%97%90_options_http_1.0_%EA%B0%80_%EA%B8%B0%EB%A1%9D%EB%90%98%EB%8A%94_%EC%9D%B4%EC%9C%A0