단축키

Prev이전 문서

Next다음 문서

수정 삭제

단축키

Prev이전 문서

Next다음 문서

수정 삭제
Extra Form

이 로그로 인해 Apache 가 정상적으로 응답하지 않는 현상도 발생한다

 

::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)"

 

 

"Apache/2.4.41 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1f (internal dummy connection)" 더미 연결 로그 생성방지 해결방법은 아래와같다

 

 

1. RewriteEngine 을 이용한 로그방지

 

You can use .htaccess by redirecting requests from the "internal dummy connection" to an empty file

 

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^.*internal dummy connection.*$ [NC]
RewriteRule ^/$ /empty.html [L]

 

 

 

2. apache2.conf 설정에서 donot을 이용한 로그방지

 

해결책

 

/etc/apache2/apache2.conf

/etc/apache2/sites-enabled

 

두곳을 손봐야한다

 


1. apache2.conf 검정 밑줄친 부분을 추가해준다

LogFormat " %v %>s  %h %l %u %t "%r" %>s %O "%{Referer}i" "%{User-Agent}i"" combined
LogFormat "%h %l %u %t "%r" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat " %v %>s "%{User-agent}i" agent

SetEnvIf Remote_Addr "127.0.0.1" dontlog
SetEnvIf Remote_Addr "::1" dontlog
SetEnvIf User-Agent ".*internal dummy connection.*" dontlog

LogFormat " %v %>s "%{User-Agent}i"" vhost_combined


2. /etc/apache2/sites-enabled 호스트안에 ****.log로 구분하여 로그기록을 하도록 분리한다.


<VirtualHost *:80>

CustomLog ${APACHE_LOG_DIR}/*****.log combined env=!dontlog

   </VirtualHost>

 

 

 

참조 : 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


0 0 0 0 0 0 0 0 1 0
List of Articles
번호 분류 제목 날짜 조회 수
공지 유머 🚨(뉴비필독) 전체공지 & 포인트안내 13 2024.11.04 27426
공지 이슈 URL만 붙여넣으면 끝! 임베드 기능 2025.01.21 21676
380512 생활용품 기본 무지 반팔 티셔츠 6,900원 배송비 3,000원 newfile 2025.06.27 5
380511 이슈 브이로그 찍다 핸드폰 잃어버린 남돌 newfile 2025.06.27 10
380510 화장품 강세일 뷰티X후시다인 UP TO 79% OFF newfile 2025.06.27 169
380509 상품리뷰/후기 멜라토닌 1박스 먹은 후기 newfile 2025.06.27 963
380508 주말에 또 비온대 new 2025.06.27 12
380507 주말에 또 비온대 new 2025.06.27 13
380506 의류 현대홈쇼핑 브랜드 의류 ~96% 할인 하루 최저가 5,100원부터 newfile 2025.06.27 86
380505 유머 82년생이라는 게 믿기지 않을 만큼 최강 동안인 오만추2 여출 newfile 2025.06.27 33
380504 습하니 넘 싫다 1 new 2025.06.27 47
380503 요시고 좋아하는 덬들있어? newfile 2025.06.27 120
Board Pagination Prev 1 2 3 4 5 ... 38052 Next
/ 38052