随笔分类 - nginx
摘要:给nginx的日志按照接口统计每个小时的请求量 cat access_2023-02-01.log |awk '{split($2,a,":");b[a[2]]+=1} END{for(i in b) printf("%10s %5d\n",i,b[i])}'|sort cat /home/apaa
阅读全文
摘要:[root@XWBizEngine03 conf]# cat nginx.conf |egrep -v '#' |grep -v '^$' user root; worker_processes auto; error_log logs/error.log debug; events { worke
阅读全文
摘要:violates the following Content Security Policy directive: "default-src 'self'". Nginx 解决内容安全策略CSP(Content-Security-Policy)配置方式(漏洞修复) - 龙凌云端 - 博客园 (cnb
阅读全文
upstream timed out (110: Connection timed out) while reading response header from upstream nginx配置例子
摘要:proxy_http_version 1.1; proxy_set_header Connection ""; Allows proxying requests with NTLM Authentication. The upstream connection is bound to the cli
阅读全文
摘要:http { proxy_headers_hash_bucket_size 1024; types_hash_bucket_size 1024; #server_tokens off; more_clear_headers Server; include mime.types; default_ty
阅读全文
摘要:1. cat /proc/11233/limits Max open files 65535 65535 files 2. cat /usr/lib/systemd/system/openresty.service # /usr/lib/systemd/system/openresty.servic
阅读全文
摘要:nginx编译安装之后,启动出现了:nginx: [emerg] getpwnam("nginx") failed 这个是因为我编译安装nginx的时候指定了--user=nginx和--group=nginx,去除就没事了 但是出于安全性考虑,还是用独立权限的账户运行(root权限太大,web渗透
阅读全文
摘要:1. nginx第三方模块安装方法 ./configure --prefix=/你的安装目录 --add-module=/第三方模块目录 2. 在nginx安装目录中创建文件夹third_moule。下载echo模块到nginx安装目录中的third_moule。 wget https://gith
阅读全文
摘要:1. 443 四个域名 server { listen 443 ssl; server_name idedsr.do1.com; ssl_certificate /etc/nginx/ssl/idedsr.do1.com/server.pem; ssl_certificate_key /etc/ng
阅读全文
摘要:1. cat /usr/local/grafana/conf/defaults.ini # The full public facing url #root_url = %(protocol)s://%(domain)s:%(http_port)s/ root_url = http://localh
阅读全文
摘要:1. 日本日历导致oss 403 71 09-16 10:17:13 __source__: log_service __topic__: oss_access_log acc_access_region: - access_id: - bucket: jdb-storage bucket_loca
阅读全文
摘要:location /nacos/ { set $flag 0; if ($remote_addr !~ ^(10.0.37.155|10.0.37.154|10.0.37.156|10.0.37.162|10.0.37.163|10.0.37.164|10.0.37.165|10.0.37.157|
阅读全文
摘要:1. tomcat报错 EVERE: An I/O error has occurred while writing a response message entity to the container output stream. org.glassfish.jersey.server.inter
阅读全文
摘要:1. nginx直接跳转转发 server { listen 443 ssl; server_name erjiyuming.cheerlose.com; ssl_certificate /etc/nginx/ssl/erjiyuming.cheerlose.com/server.pem; ssl_
阅读全文
摘要:1. ./configure: error: the HTTP image filter module requires the GD library. You can either do not enable the module or install the libraries. yum ins
阅读全文
摘要:1. /usr/local/tengine/conf/conf.d [root@slave1 conf.d]# cat myserver.conf server { listen 80; client_max_body_size 4G; server_name example.com 129.211
阅读全文
摘要:1. Web Analytics Dashboard for NGINX Required NGINX json log format configuration below. https://grafana.com/grafana/dashboards/12559 log_format json_
阅读全文
摘要:1.根据http://xxxx.com/nginx_status/ 统计 参考:https://www.oschina.net/code/snippet_226718_17879 #/bin/bash 2 3 #nginx_status_url 手动配置项 4 NGINX_STATUS_URL="h
阅读全文
摘要:1.若nginx配置的响应等待时间(proxy_read_timeout)为30秒,就会触发超时重试,将请求又打到另一台。如果处理中没有考虑到重复数据的场景,就会发生数据多次重复插入! proxy_next_upstream error | timeout | invalid_header | ht
阅读全文
摘要:0.stub_status configure arguments: --prefix=/usr/local/tengine --with-http_realip_module --with-http_gzip_static_module --with-pcre --with-http_stub_s
阅读全文