跳转到内容

SRE笔记

  • 密码
    • 短链
  • 服务器
  • 关于

nginx标签存档订阅

nginx use underscores_in_headers

nginx默认不支持带下划线的header,需要打开: underscores_in_headers… 继续阅读 nginx use underscores_in_headers

  • 发表于: 2024-06-18 2024-06-18
  • 作者: kangder
  • 分类: SRE
  • 标签: http, nginx
  • 发表评论: nginx use underscores_in_headers

nginx get http_x_forwarded_proto to return

#根据协议类型来强跳https if ( $http_x_forwarded_proto = &qu… 继续阅读 nginx get http_x_forwarded_proto to return

  • 发表于: 2024-05-09 2024-05-09
  • 作者: kangder
  • 分类: SRE
  • 标签: bash, http, https, nginx
  • 发表评论: nginx get http_x_forwarded_proto to return

net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)

nginx.conf指定user proxy_temp 确认有权限

  • 发表于: 2024-03-11 2024-03-11
  • 作者: kangder
  • 分类: SRE
  • 标签: nginx, proxy
  • 发表评论: net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)

get top 50 ip from nginx access log

#nginx日志文件中找出top50的访问ip /usr/local/nginx/logs grep… 继续阅读 get top 50 ip from nginx access log

  • 发表于: 2023-12-11 2023-12-11
  • 作者: kangder
  • 分类: SRE
  • 标签: awk, grep, nginx
  • 发表评论: get top 50 ip from nginx access log

nginx get remote_addr

location /whoami { default_type text/plain; return… 继续阅读 nginx get remote_addr

  • 发表于: 2023-10-22 2023-10-22
  • 作者: kangder
  • 分类: SRE
  • 标签: nginx
  • 发表评论: nginx get remote_addr

trojan_install.sh

#!/bin/bash #字体颜色 blue(){ echo -e "\033[34m\0… 继续阅读 trojan_install.sh

  • 发表于: 2023-05-20 2023-05-20
  • 作者: kangder
  • 分类: SRE
  • 标签: grep, nginx
  • 发表评论: trojan_install.sh

nginx get top 100 page from access log

nginx 查看访问最频的页面(TOP100) grep -v ".php" a… 继续阅读 nginx get top 100 page from access log

  • 发表于: 2023-05-18 2023-05-18
  • 作者: kangder
  • 分类: SRE
  • 标签: awk, bash, grep, nginx, php
  • 发表评论: nginx get top 100 page from access log

nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 32

server_names_hash_bucket_size 64;

  • 发表于: 2023-05-04 2023-05-04
  • 作者: kangder
  • 分类: SRE
  • 标签: hash, nginx
  • 发表评论: nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 32

nginx proxy path

#路径也变化,则需要设置cookie的路径转换 location /proxy_path { pro… 继续阅读 nginx proxy path

  • 发表于: 2022-10-11 2022-10-11
  • 作者: nicaier
  • 分类: SRE
  • 标签: cookie, http, https, nginx, proxy
  • 发表评论: nginx proxy path

查看当前nginx生效的配置文件

nginx -T

  • 发表于: 2022-09-24 2022-09-25
  • 作者: nicaier
  • 分类: SRE
  • 标签: bash, nginx
  • 发表评论: 查看当前nginx生效的配置文件

普通用户启动nginx 使用80端口

setcap cap_net_bind_service=+eip ./nginx su user1 … 继续阅读 普通用户启动nginx 使用80端口

  • 发表于: 2022-09-22 2022-09-22
  • 作者: nicaier
  • 分类: SRE
  • 标签: bash, nginx
  • 发表评论: 普通用户启动nginx 使用80端口

nginx重试容错 proxy_next_upstream

usage: proxy_next_upstream error timeout http_500 … 继续阅读 nginx重试容错 proxy_next_upstream

  • 发表于: 2022-08-25 2022-08-25
  • 作者: shxiefc
  • 分类: SRE
  • 标签: http, nginx, proxy
  • 发表评论: nginx重试容错 proxy_next_upstream

nginx -g daemon off

容器有且仅有一个前台能持续运行的进程 nginx 默认是后台守护进程的形式运行, nginx -g … 继续阅读 nginx -g daemon off

  • 发表于: 2022-08-25 2022-08-25
  • 作者: shxiefc
  • 分类: SRE
  • 标签: alpine, Docker, https, nginx
  • 发表评论: nginx -g daemon off

kubernetes run wordpress

ConfigMap nginx-config kind: ConfigMap apiVersion:… 继续阅读 kubernetes run wordpress

  • 发表于: 2022-08-21 2022-08-21
  • 作者: shxiefc
  • 分类: SRE
  • 标签: kubernetes, nginx, php, wordpress, yaml
  • 发表评论: kubernetes run wordpress

nginx ignore favicon.ico

log off: location = /favicon.ico { log_not_found o… 继续阅读 nginx ignore favicon.ico

  • 发表于: 2022-08-15 2022-08-15
  • 作者: aiops
  • 分类: SRE
  • 标签: https, nginx, proxy
  • 发表评论: nginx ignore favicon.ico

docker run php:7.4-fpm

docker run -d –name php-fpm \ -p 9000:9000 \ -v /… 继续阅读 docker run php:7.4-fpm

  • 发表于: 2022-08-15 2022-08-15
  • 作者: aiops
  • 分类: SRE
  • 标签: Docker, html, nginx, php
  • 发表评论: docker run php:7.4-fpm

nginx 499 client has closed connection

proxy_ignore_client_abort on;

  • 发表于: 2022-08-10 2022-08-10
  • 作者: aiops
  • 分类: SRE
  • 标签: nginx, proxy
  • 发表评论: nginx 499 client has closed connection

docker run nginx-rtmp

docker run -itd -p 1935:1935 -p 8080:80 –name ngi… 继续阅读 docker run nginx-rtmp

  • 发表于: 2022-08-09 2022-08-09
  • 作者: aiops
  • 分类: SRE
  • 标签: bash, Docker, ffmpeg, nginx
  • 发表评论: docker run nginx-rtmp

nginx root alias

location /img/ { alias /var/www/image/; } 若按照上述配置的… 继续阅读 nginx root alias

  • 发表于: 2022-08-04 2022-08-04
  • 作者: guo, jr
  • 分类: SRE
  • 标签: nginx
  • 发表评论: nginx root alias

nginx反向代理获取真正的访问来源ip

#location配置段 proxy_set_header Host $http_host; pro… 继续阅读 nginx反向代理获取真正的访问来源ip

  • 发表于: 2022-07-11 2022-07-11
  • 作者: erer, er
  • 分类: SRE
  • 标签: http, nginx, proxy
  • 发表评论: nginx反向代理获取真正的访问来源ip

分页

页码: 1 页码: 2 页码: 3 页码: 4 页码: 5 页码: 6 … 页码: 10 下一页

搜索

搜索:

近期评论

  • 周周 发表在《Kubernetes部署NextCloud网盘》
  • mysql m-s via gtid – SRE笔记 发表在《MySQL SET GTID_NEXT》
  • kangder 发表在《Kubernetes部署NextCloud网盘》
  • xs 发表在《Kubernetes部署NextCloud网盘》
  • test 发表在《gin不转义html标签》

标签

aws (15) bash (1123) Blockchain (28) centos (28) Docker (105) elasticsearch (26) eth (34) fil (39) go (129) golang (154) Grafana (13) hpc (15) http (299) https (1999) ingress (14) iptables (20) java (75) JVM (20) kubernetes (309) Linux (546) lotus (30) mongoDB (41) MySQL (184) nginx (112) php (25) python (148) redis (34) s3 (75) shell (20) springboot (32) tcp (69) tomcat (15) ubuntu (31) vue (18) windows (42) wordpress (14) zabbix (37) 夏小胖 (31) 安全 (55) 工具 (451) 折腾 (24) 推荐 (15) 硬件 (61) 网络 (246) 资源 (49)

归档

  • 2024 年 12 月
  • 2024 年 11 月
  • 2024 年 10 月
  • 2024 年 9 月
  • 2024 年 8 月
  • 2024 年 7 月
  • 2024 年 6 月
  • 2024 年 5 月
  • 2024 年 4 月
  • 2024 年 3 月
  • 2024 年 2 月
  • 2024 年 1 月
  • 2023 年 12 月
  • 2023 年 11 月
  • 2023 年 10 月
  • 2023 年 9 月
  • 2023 年 8 月
  • 2023 年 7 月
  • 2023 年 6 月
  • 2023 年 5 月
  • 2023 年 4 月
  • 2023 年 3 月
  • 2023 年 2 月
  • 2023 年 1 月
  • 2022 年 12 月
  • 2022 年 11 月
  • 2022 年 10 月
  • 2022 年 9 月
  • 2022 年 8 月
  • 2022 年 7 月
  • 2022 年 6 月
  • 2022 年 5 月
  • 2022 年 4 月
  • 2022 年 3 月
  • 2022 年 2 月
  • 2022 年 1 月
  • 2021 年 12 月
  • 2021 年 11 月
  • 2021 年 10 月
  • 2021 年 9 月
  • 2021 年 8 月
  • 2021 年 7 月
  • 2021 年 6 月
  • 2021 年 5 月
  • 2021 年 4 月
  • 2021 年 3 月
  • 2021 年 2 月
  • 2021 年 1 月
  • 2020 年 12 月
  • 2020 年 11 月
  • 2020 年 10 月
  • 2020 年 9 月
  • 2020 年 8 月
  • 2020 年 7 月
  • 2020 年 6 月
  • 2020 年 5 月
  • 2020 年 4 月
  • 2020 年 3 月
  • 2020 年 2 月
  • 2020 年 1 月
  • 2019 年 12 月
  • 2019 年 11 月
  • 2019 年 10 月
  • 2019 年 9 月
  • 2019 年 8 月
  • 2019 年 7 月
  • 2019 年 6 月
  • 2019 年 5 月
  • 2019 年 4 月
  • 2019 年 3 月
  • 2019 年 2 月
  • 2019 年 1 月
  • 2018 年 12 月
  • 2018 年 11 月
  • 2018 年 10 月
  • 2018 年 9 月
  • 2018 年 8 月
  • 2018 年 7 月
  • 2018 年 6 月
  • 2018 年 5 月
  • 2018 年 4 月
  • 2018 年 3 月
  • 2018 年 2 月
  • 2018 年 1 月
  • 2017 年 12 月
  • 2017 年 11 月
  • 2017 年 10 月
  • 2017 年 8 月
  • 2017 年 7 月
  • 2017 年 6 月
  • 2017 年 5 月
  • 2017 年 4 月
  • 2017 年 3 月
  • 2017 年 2 月
  • 2017 年 1 月
  • 2016 年 12 月
  • 2016 年 11 月
  • 2016 年 10 月
  • 2016 年 9 月
  • 2016 年 8 月
  • 2016 年 7 月
  • 2016 年 6 月
  • 2016 年 5 月
  • 2016 年 4 月
  • 2016 年 3 月
  • 2016 年 2 月
  • 2016 年 1 月
  • 2015 年 12 月
  • 2015 年 10 月
  • 2015 年 9 月
  • 2015 年 8 月
  • 2015 年 7 月
  • 2015 年 6 月
  • 2015 年 5 月
  • 2015 年 4 月
  • 2015 年 3 月
  • 2015 年 2 月
  • 2015 年 1 月
  • 2014 年 12 月
  • 2014 年 11 月
  • 2014 年 10 月
  • 2014 年 9 月
  • 2014 年 8 月
  • 2014 年 7 月
  • 2014 年 6 月
  • 2014 年 5 月
  • 2014 年 2 月