服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. 胶水logging 脚本 ip nginx
  3. nginx不logging特定ip地址的请求
Intereting Posts
在通过远程模块运行命令和在powershell中执行Invoke-Command之间的区别 将Exchange 2003备份恢复到Exchange 2010服务器 如何更改Exchange 2013服务器的FQDN 如何永久忽略grub-pc软件包的aptitude? 在Atom Mini-ITX PC上构build构build服务器 有没有什么方法可以让Windows Server 2008 R2减less进程的工作集? Sudo命令被拒绝(htpasswd) – CentOS / Apache(htaccess) 重新分区qcow2图像没有数据丢失 当您的服务器用完可用RAM时,redis会发生什么情况? CloudLinux服务器将无法启动 如何授予Apache访问目录 把我的Windows Server 2016变成一个远程文件服务器 sendmail rbl.m4丢失在centos上 IIS重写基于语言的规则和默认语言 IP转发问题

nginx不logging特定ip地址的请求

我试图不logging从一个特定的IP地址,如下所示的请求:

location = / { index index.php; if ( $remote_addr = "spe.ci.fic.ip" ) { access_log off; } } 

但它不起作用,为什么?

  • 在linux安全日志中重复失败的密码(/ var / log / secure)
  • 日志旋转的好处
  • 在我的networking服务器日志中,“引用者”是什么意思?
  • 新的日志条目 – >邮件通知
  • 如何确定哪个请求nginx发送到代理服务器?

你使用正确的语法

 location ~ ^/(css|js) { if ( $remote_addr = "127.0.0.1" ) { access_log off; } } 

在你的例子中,nginx不会为“/”位置写入日志。

  • 如何使“\ n”在terminal的新行?
  • Windows 2000 Server IIS FTP用户日志
  • 简单的DNS问题
  • 如何configurationlogwatch来监视自定义日志文件
  • 日志logging不会停留在重命名/移动它的日志文件…我如何阻止它?
  • 在子名称服务器上缺less胶水
  • 哪里可以findMysql的terminal日志
  • Rsyslogd没有监听端口
  • 如何在logcheck文件中发表评论?
  • 当cron完成时如何获得电子邮件通知并login文件(两者)

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy