服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. 胶水logging 脚本 ip nginx
  3. nginx不logging特定ip地址的请求
Intereting Posts
testing服务器是否curl和grep。 Grep添加标题? 如何设置nmap ping计数? 从Win2008服务器IIS连接到samba共享 工头/木偶:使用模块将用户添加到sudoers Windows Server 2008 AD用户权限 如何阻止本地用户访问本地端口? NcFTP批量上传 UEFI网路启动菜单 升级Debian服务器托pipeXen 3.2.1上的内核 VPS突然改为只读文件系统 Windows防火墙日志存储在哪里? 无法打开Active Directory用户和计算机,组策略设置问题 间歇性networking故障排除“滴” MySQL服务器重启后数据丢失 在Red5Phone上按住button

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