fswdnr 发表于 2018-11-12 08:59:27

Nginx实现浏览器实时查看访问日志

# cd /application/nginx-1.9.7/conf/  
# egrep -v "#|^$" nginx.conf.default
  
worker_processes 1;
  
events {
  
    worker_connections 1024;
  
}
  
http {
  
    include mime.types;
  
    default_type application/octet-stream;
  
    sendfile on;
  
    keepalive_timeout 65;
  
    server {
  
      listen 80;
  
      server_name localhost;
  
      location / {
  
            root html;
  
            index index.html index.htm;
  
      }
  
      error_page 500 502 503 504 /50x.html;
  
      location = /50x.html {
  
            root html;
  
      }
  
    }
  
}
  
# egrep -v "#|^$" nginx.conf.default > nginx.conf


页: [1]
查看完整版本: Nginx实现浏览器实时查看访问日志