사용자 도구

사이트 도구


nginx:log

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
마지막 판 양쪽 다음 판
nginx:log [2020/08/26 09:35]
kwon37xi
nginx:log [2020/08/26 09:36]
kwon37xi [특정 GET query parameter masking]
줄 20: 줄 20:
  
 <code> <code>
 +log_format filter '$remote_addr - $remote_user [$time_local] '
 +    '"$temp" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
 +
 +# Other Configs
 +
 +server {
 +    #Server Configs
 +    location / {
 +        set $temp $request;
 +        if ($temp ~ (.*)password=[^&]*(.*)) { 
 +            set $temp $1password=****$2;
 +        }
 +
 +        access_log /opt/current/log/nginx_access.log filter;
 +    }
 +}
 </code> </code>
  
nginx/log.txt · 마지막으로 수정됨: 2020/08/26 15:48 저자 kwon37xi