zoukankan      html  css  js  c++  java
  • nginx 配置日志

    http {
        include       mime.types;
        default_type  application/octet-stream;
    
        log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                          '$status $body_bytes_sent "$http_referer" '
                          '"$http_user_agent" "$http_x_forwarded_for"';
    
        access_log  /var/log/nginx/nginx-access.log  main;
    
    
    
    [root@frontend01 nginx]# vim nginx-access.log 
    [root@frontend01 nginx]# tail -f nginx-access.log 
    10.168.102.19 - - [23/Jul/2016:07:45:44 +0800] "GET /resources/images/index/wcjr.jpg HTTP/1.1" 200 10469 "https://wenjinbao.winfae.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
    10.168.102.19 - - [23/Jul/2016:07:45:44 +0800] "GET /resources/images/index/p2.jpg HTTP/1.1" 200 50126 "https://wenjinbao.winfae.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
    10.168.255.134 - - [23/Jul/2016:07:45:44 +0800] "GET /resources/images/index/wzsjrtzjt.jpg HTTP/1.1" 200 7131 "https://wenjinbao.winfae.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
    10.168.255.134 - - [23/Jul/2016:07:45:45 +0800] "GET /resources/images/index/zgjsyh.jpg HTTP/1.1" 200 6193 "https://wenjinbao.winfae.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
    10.168.255.134 - - [23/Jul/2016:07:45:45 +0800] "GET /resources/images/icon/icon_mobile.31420446.png HTTP/1.1" 200 432 "https://wenjinbao.winfae.com/resources/css/index.css" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
    10.168.102.19 - - [23/Jul/2016:07:45:45 +0800] "GET /resources/images/icon/icon_wechat.d84ab4ed.png HTTP/1.1" 200 2982 "https://wenjinbao.winfae.com/resources/css/index.css" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
    10.168.255.134 - - [23/Jul/2016:07:45:45 +0800] "GET /resources/images/product/arrow_icon.30ac92d0.png HTTP/1.1" 200 1427 "https://wenjinbao.winfae.com/resources/css/index.css" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
    10.168.102.19 - - [23/Jul/2016:07:45:45 +0800] "GET /resources/images/index/about.28b04375.jpg HTTP/1.1" 200 131585 "https://wenjinbao.winfae.com/resources/css/index.css" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
    10.168.255.134 - - [23/Jul/2016:07:45:45 +0800] "GET /resources/images/icon/beian.4541cb58.png HTTP/1.1" 200 1905 "https://wenjinbao.winfae.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
    10.168.255.134 - - [23/Jul/2016:07:45:45 +0800] "GET /resources/images/favicon.ico HTTP/1.1" 200 4286 "https://wenjinbao.winfae.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
    
    
    显示源地址
    

  • 相关阅读:
    用PHP判断oicq是否在线的小程序
    我的PHP树的代码,可以嵌套任意层
    用PEAR来写你的下一个php程序(潘凡Night Sailer)(1)
    php在线文本编辑器
    分析HTML,并将结果存到一个数组中。看看里面的注释吧。:)
    聊天室php
    基于文件、数据库的计数器
    hust The mell hell
    UVA 10003 Cutting Sticks(区间DP)
    zoj 3197 Google Book(最小区间覆盖)
  • 原文地址:https://www.cnblogs.com/zhaoyangjian724/p/6199515.html
Copyright © 2011-2022 走看看