사용자 도구

사이트 도구


nginx:log

차이

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

차이 보기로 링크

양쪽 이전 판 이전 판
nginx:log [2020/08/26 09:36]
kwon37xi [특정 GET query parameter masking]
nginx:log [2020/08/26 15:48] (현재)
kwon37xi [특정 GET query parameter masking]
줄 18: 줄 18:
 ===== 특정 GET query parameter masking ===== ===== 특정 GET query parameter masking =====
   * [[https://stackoverflow.com/questions/19265766/how-to-not-log-a-get-request-parameter-in-the-nginx-access-logs|How to not log a get request parameter in the nginx access logs? - Stack Overflow]]   * [[https://stackoverflow.com/questions/19265766/how-to-not-log-a-get-request-parameter-in-the-nginx-access-logs|How to not log a get request parameter in the nginx access logs? - Stack Overflow]]
 +  * [[https://forum.nginx.org/read.php?11,234313,234314|Masking query string password in access log]]
  
 <code> <code>
줄 27: 줄 28:
 server { server {
     #Server Configs     #Server Configs
-    location / {+    location / { # location 을 구체적으로 명시하는게 나을 듯 보임.
         set $temp $request;         set $temp $request;
         if ($temp ~ (.*)password=[^&]*(.*)) {          if ($temp ~ (.*)password=[^&]*(.*)) { 
nginx/log.1598402169.txt.gz · 마지막으로 수정됨: 2020/08/26 09:36 저자 kwon37xi