腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9347)
视频
沙龙
2
回答
如何在根目录上禁用nginx中的日志记录?
nginx
相关配置是:
access_log
/var/log/nginx/access.log;
access_log
off;
access_log
/var/log/nginx/example_com_access.log combined;} 我尝试过几种
access_log
参数的配置
浏览 7
提问于2017-09-11
得票数 0
回答已采纳
2
回答
Apache日志中的IP地址
apache
、
perl
、
logging
\d{1,3}\b -/xxxxxxxxxxx -/'
access_log
我不知道把什么放在xxxxxxxxxxx上。有什么办法让我完成这件事吗?
浏览 5
提问于2014-06-01
得票数 0
回答已采纳
2
回答
只针对某些请求分离Nginx访问日志文件
ubuntu
、
nginx
、
logging
、
blocking
、
request
据我所知,默认情况下,Nginx支持2个日志文件:error_log (跟踪与Nginx服务器本身相关的问题)和
access_log
(跟踪由Nginx处理的请求)。虽然使用
access_log
指令控制log_format格式是可能的,但我一直未能找到将某些请求记录到单独文件的方法,因此,我想提出关于SF的问题,作为将来读者的参考: 是否有方法将某些请求记录到与
access_log
这个问题背后的原因是,我有一条规则,拒绝对不想要的爬虫使用200 (因为403会提示它们被阻塞),而将这些请求从
access_log
中过滤变得更
浏览 0
提问于2012-06-01
得票数 8
回答已采纳
1
回答
access_log
取消301号或302号
nginx
、
logging
、
haproxy
因此,在我的nginx配置中,我添加:
access_log
off;问题是,这个位置返回301,所以我一次又一次地得到这些日志:10.1.29.1 - - [15/Mar/2013:06:51:36 +0100] "HEAD /lol.txt HTTP/1.0" 301 0 "-" "-" 你有什么想法让
access_log
停止工作吗
浏览 0
提问于2013-03-15
得票数 1
1
回答
管理图像和静态文件的正确方法nginx
image
、
nginx
g|gif|png|ico|css|js|html|htm|woff|svg|ttf)$ { expires
浏览 1
提问于2014-04-29
得票数 0
回答已采纳
1
回答
nginx将日志发送到远程syslog服务器
nginx
、
syslog-ng
我需要将nginx访问日志发送到远程syslog-ng服务器。我在每个端(服务器-客户端)安装了syslog-ng。Server: 10.10.10.1source s_net { tls( key_file("/etc/syslog-ng/key.d/privkey.pem") cert_file("/etc/syslog-ng/c
浏览 0
提问于2014-09-19
得票数 2
1
回答
运行Apache服务器导致计算机耗尽空间
rhel
、
apache-httpd
、
disk-usage
我在RHEL5.5上运行我的Apache服务器,当我输入:df -h时,我注意到:Filesystem Size Used Avail Use% Mounted on 11G 11G 0 100% /tmpfs
浏览 0
提问于2014-08-27
得票数 0
回答已采纳
1
回答
规则禁止访问- Nginx日志记录
nginx
、
logging
/xmlrpc.php HTTP/1.1", host: "www.ourname.com" 这些不应该像我们定义的那样被记录下来: location = /xmlrpc.php {deny all;
access_log
浏览 126
提问于2020-12-08
得票数 0
回答已采纳
3
回答
如何禁用Nginx日志记录?
nginx
配置文件中有以下内容 listen 80;
access_log
/var/log/nginx/access.logserver { server_name example.com error_log off; 但是它仍然在为
浏览 0
提问于2011-10-05
得票数 48
1
回答
PHP数组提前并显示与模式匹配的所有值。
php
、
arrays
、
foreach
我使用scandir获取日志目录中所有访问日志的列表,如果$
access_log
=基于域和月份的某些条件,则可以显示不同月份的访问日志。因此,我试图弄清楚如何重写我的代码,使其只有一个if语句,该语句在$
access_log
中寻找一个$
access_log
模式,并在$log_month变量中列出这些访问日志。$
access_log
. '">' . $
access_log
. '</a></li>' .$
浏览 0
提问于2016-01-15
得票数 0
1
回答
将nginx日志发送到syslog和stdout/stderr
nginx
、
stdout
、
stderr
、
nginx-config
error_log syslog:server=localhost:5447,facility=local7,tag=nginx_client,severity=error;
access_log
浏览 0
提问于2018-10-25
得票数 4
回答已采纳
2
回答
nginx日志用于定位
nginx
、
nginx-location
、
nginx-config
server {
access_log
浏览 0
提问于2018-10-12
得票数 5
2
回答
使用nginx提供默认映像
nginx
我在nginx中有以下配置: root /srv/kose/;
access_log
offlocation /static/ { expires 2w; error_page
浏览 0
提问于2012-06-03
得票数 1
回答已采纳
2
回答
复制和重命名文件
bash
、
copy
、
cp
、
mv
/var/log/httpd/
access_log
/var/log/httpd/access_log.2c
浏览 0
提问于2011-06-17
得票数 0
回答已采纳
1
回答
Nginx组态SCRIPT_FILENAME
php
、
nginx
、
yii
、
rewrite
、
stderr
add_header Pragma "public";
access_log
浏览 7
提问于2015-06-12
得票数 2
回答已采纳
1
回答
将nginx速率限制的IPs记录到特定文件中。
nginx
、
synchronization
、
rate-limiting
我正在寻找一种方法来同步nginx节点之间的有限速率IP。我想记录这些IP,然后将它们推到数据库中,并开发一个代理来更新nginx配置文件中阻塞的IP。那么,是否可以在nginx中将限制速率的IP记录到特定的文件中,或者您是否建议其他方法来同步节点之间的速率受限的IP?
浏览 0
提问于2021-09-05
得票数 1
回答已采纳
2
回答
为特定路径关闭
access_log
,同时仍允许下降到PHP
nginx
server_tokens off; try_files $uri @app;
access_log
off;
access_log
off; default_type text/plain;
浏览 0
提问于2020-07-03
得票数 0
回答已采纳
2
回答
将Squid配置为不记录TCP连接(大量“错误:事务结束前的头”显示在日志中)
squid
、
centos8
我们在GCP中运行Squid代理,并且正在从CentOS 7迁移到8。我正在使用GCP内部L4负载均衡器来改进冗余/故障转移,并配置了一个基本的TCP健康检查,它运行良好。1618013711.836 0 35.191.10.117 NONE/000 0 NONE error:transaction-end-before-headers - HIER_NONE/- - 1618013712.256 0 35.191.9.223 NO
浏览 0
提问于2021-04-10
得票数 1
回答已采纳
2
回答
禁用nginx conf中特定用户代理的日志记录
nginx
http_user_agent ~ (bingbot|AhrefsBot|DotBot|Exabot|Baiduspider|SemrushBot) ) { return 403; } 我想这是因为我只有一个服务器块。
浏览 0
提问于2018-11-08
得票数 1
1
回答
apache上的日志文件位置
apache
、
apache2
我在httpd配置中找到了这一行:但是,当我使用以下命令时,如何导航到该文件夹:我得到了:我想压缩日志文件并将其移动到var/www/html/文件夹,这样我就可以下载它。
浏览 4
提问于2014-04-15
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Nginx日志配置
Nginx配置文件nginx.conf详解
java与python 的并发争论
渗透测试学习笔记之综合渗透案例
教你如何利用fastcgi_cache缓存加速WordPress
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券