Nginx 설정 access log 요청 로그 상세 설명
2130 단어 linuxnginx
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" "$http_x_forwarded_for"';
access_log logs/access.log main;
log_형식 명령 어
기본 값:
log_format combined "...";
탭 위치: http
상용 변수:-
'대신.access_로그 명령
기본 값:
access_log logs/access.log combined;
탭 위치: http
, server
, location
, if in location
, limit_except
access_log off;
access_log logs/access.log main;
access_log logs/access.log main buffer=32k flush=5s;
map $status $loggable {
~^[23] 0;
default 1;
}
# 2xx 3xx
access_log /path/to/access.log main if=$loggable;
다시 불 러 오기 설정
../sbin/nginx -t
../sbin/nginx -s reload
참고: http://nginx.org/en/docs/http...
http://nginx.org/en/docs/http...
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Nginx 설정 access log 요청 로그 상세 설명설정 예제 log_형식 명령 어 기본 값: log_format combined "...";탭 위치: http상용 변수: $bytes_sent 클 라 이언 트 에 게 보 낸 바이트 수 는 ngx 에 있 습 니 다.ht...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.