erd 문가 추가, nginx 에러 로그 추가
This commit is contained in:
		@@ -8,7 +8,15 @@ events {
 | 
			
		||||
# HTTP 블록은 웹 서버의 동작을 정의합니다.
 | 
			
		||||
http {
 | 
			
		||||
    # MIME 타입 파일을 포함하여 파일 확장자에 따라 콘텐츠 타입을 결정합니다.
 | 
			
		||||
    include /etc/nginx/mime.types;
 | 
			
		||||
    include mime.types;
 | 
			
		||||
    error_log logs/error.log warn;
 | 
			
		||||
 | 
			
		||||
     # <<< 여기서 log_format 'main'을 정의 >>>
 | 
			
		||||
    log_format main '$remote_addr - $remote_user [$time_local] "$request" '
 | 
			
		||||
                    '$status $body_bytes_sent "$http_referer" '
 | 
			
		||||
                    '"$http_user_agent" "$http_x_forwarded_for"';
 | 
			
		||||
    # 위에서 정의한 'main'을 사용
 | 
			
		||||
    access_log logs/access.log main;
 | 
			
		||||
 | 
			
		||||
    # 기본 서버 설정을 정의합니다.
 | 
			
		||||
    server {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user