태그 보관물: zend

zend

몇 초마다 Apache access.log 그루 빙을 중지하는 방법은 무엇입니까? “-” “Apache/2.2.22 (Ubuntu) (internal

에서 새로운 Ubuntu 12.04 Server + Zend Server CE (MySQL / PHPmyadmin)를 설치했습니다 deb http://repos.zend.com/zend-server/5.6.0_ubuntu1204/deb server non-free Repository.

내 apache2 / access.log는 다음과 같으며 몇 초마다 홈 가공됩니다.

::1 - - [06/Aug/2012:13:27:59 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Ubuntu) (internal dummy connection)"
::1 - - [06/Aug/2012:13:27:59 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Ubuntu) (internal dummy connection)"
::1 - - [06/Aug/2012:13:27:59 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Ubuntu) (internal dummy connection)"
::1 - - [06/Aug/2012:13:28:00 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Ubuntu) (internal dummy connection)"
::1 - - [06/Aug/2012:13:28:00 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Ubuntu) (internal dummy connection)"
::1 - - [06/Aug/2012:13:28:00 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Ubuntu) (internal dummy connection)"
::1 - - [06/Aug/2012:13:28:00 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Ubuntu) (internal dummy connection)"
::1 - - [06/Aug/2012:13:28:00 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Ubuntu) (internal dummy connection)"
223.255.255.1 - - [06/Aug/2012:13:28:08 +0200] "HEAD / HTTP/1.1" 200 276 "-" "-"
223.255.255.1 - - [06/Aug/2012:13:28:13 +0200] "HEAD / HTTP/1.1" 200 276 "-" "-"
223.255.255.1 - - [06/Aug/2012:13:28:18 +0200] "HEAD / HTTP/1.1" 200 276 "-" "-"
223.255.255.1 - - [06/Aug/2012:13:28:23 +0200] "HEAD / HTTP/1.1" 200 276 "-" "-"
223.255.255.1 - - [06/Aug/2012:13:28:28 +0200] "HEAD / HTTP/1.1" 200 276 "-" "-"
223.255.255.1 - - [06/Aug/2012:13:28:33 +0200] "HEAD / HTTP/1.1" 200 276 "-" "-"
223.255.255.1 - - [06/Aug/2012:13:28:38 +0200] "HEAD / HTTP/1.1" 200 276 "-" "-"
223.255.255.1 - - [06/Aug/2012:13:28:43 +0200] "HEAD / HTTP/1.1" 200 276 "-" "-"
223.255.255.1 - - [06/Aug/2012:13:28:48 +0200] "HEAD / HTTP/1.1" 200 276 "-" "-"
223.255.255.1 - - [06/Aug/2012:13:28:53 +0200] "HEAD / HTTP/1.1" 200 276 "-" "-"
223.255.255.1 - - [06/Aug/2012:13:28:58 +0200] "HEAD / HTTP/1.1" 200 276 "-" "-"

왜 그리고 어떻게 방지 할 수 있습니까?



답변

에서 /etc/apache2/apache2.conf구체적으로 변경해야합니다 .

  1. 으로 환경 테스트를 작성하십시오 SetEnvIf.

  2. 그런 다음 CustomLog 줄에서 사용하십시오.

다음과 같이 :

SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
SetEnvIf Remote_Addr "::1" dontlog
SetEnvIf User-Agent ".*internal dummy connection.*" dontlog

CustomLog /var/log/apache2/other_vhosts_access.log vhost_combined env=!dontlog

마지막 줄은 이미 마지막 비트없이 파일에 있어야합니다.

세 가지 조건 중 하나 에 해당 dontlog하면 환경 변수 가 설정됩니다 . 이것을 피하기 위해서는 복잡합니다. 그러나이 블로그 에는 해결책이있는 것 같습니다.SetEnvIf


답변

이것은 프로세스를 실시간으로 유지하기 위해 아파치가하는 일입니다.

http://wiki.apache.org/httpd/InternalDummyConnection

http://www.electrictoolbox.com/apache-stop-logging-internal-dummy-connection/


답변

여기를 확인하십시오.
http://www.cathaycenturies.com/blog/?p=420

나는 당신이 수정해야한다고 생각합니다

/ etc / apache2 / sites-available / default

작동시키기 위해.