跳转到内容

SRE笔记

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

nginx标签存档订阅

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

nginx统计日志访问量前十的ip

awk '{array[$1]++}END{for (ip in array)print … 继续阅读 nginx统计日志访问量前十的ip

  • 发表于: 2022-07-11 2022-07-11
  • 作者: erer, er
  • 分类: SRE
  • 标签: awk, bash, nginx
  • 发表评论: nginx统计日志访问量前十的ip

maxUnavailable on kubernetes 1.24

apiVersion: apps/v1 kind: StatefulSet metadata: na… 继续阅读 maxUnavailable on kubernetes 1.24

  • 发表于: 2022-06-16 2022-06-16
  • 作者: bfyt
  • 分类: SRE
  • 标签: https, I/O, k8s, kubernetes, nginx, yaml
  • 发表评论: maxUnavailable on kubernetes 1.24

nginx识别带下划线的header

默认不识别,需要在nginx.conf打开 underscores_in_headers on; #… 继续阅读 nginx识别带下划线的header

  • 发表于: 2022-05-19 2022-05-19
  • 作者: bfyt
  • 分类: SRE
  • 标签: nginx
  • 发表评论: nginx识别带下划线的header

nginx return json

location / { default_type application/json; return… 继续阅读 nginx return json

  • 发表于: 2022-05-19 2022-05-19
  • 作者: bfyt
  • 分类: SRE
  • 标签: code, https, json, nginx
  • 发表评论: nginx return json

ingress配置注解 支持websocket

apiVersion: networking.k8s.io/v1 kind: Ingress met… 继续阅读 ingress配置注解 支持websocket

  • 发表于: 2022-04-24 2022-04-24
  • 作者: bili
  • 分类: SRE
  • 标签: http, https, I/O, ingress, k8s, kubernetes, nginx, proxy, yaml
  • 发表评论: ingress配置注解 支持websocket

nginx https 空机头

server { listen 80 default_server reuseport; #list… 继续阅读 nginx https 空机头

  • 发表于: 2022-03-17 2022-03-17
  • 作者: stnds
  • 分类: SRE
  • 标签: https, nginx
  • 发表评论: nginx https 空机头

nginx忽略/favicon.ico日志

location = /favicon.ico { log_not_found off; # log… 继续阅读 nginx忽略/favicon.ico日志

  • 发表于: 2022-03-01 2022-03-01
  • 作者: stnds
  • 分类: SRE
  • 标签: https, nginx
  • 发表评论: nginx忽略/favicon.ico日志

kubernetes subPath挂载单个文件

cfg: kubectl create configmap cfg –from-file=ngin… 继续阅读 kubernetes subPath挂载单个文件

  • 发表于: 2022-02-22 2022-02-22
  • 作者: stnds
  • 分类: SRE
  • 标签: bash, https, kubernetes, nginx, yaml
  • 发表评论: kubernetes subPath挂载单个文件

分页

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

搜索

搜索:

近期评论

  • test发表在《gin不转义html标签》
  • 路过发表在《msg=”getting status of runtime: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService”》
  • 禁止chrome浏览器http自动转成https – SRE笔记发表在《nginx安全配置 XSS攻击 Header头设置》
  • springboot lifecycle timeout-per-shutdown-phase优雅退出 – SRE笔记发表在《terminationGracePeriodSeconds优雅终止pod时间》
  • kubernetes Deployment快速部署rocketmq 4.9.2 dledger集群 3-broker – SRE笔记发表在《kubernetes Deployment快速部署rocketmq 4.9.2 dledger集群 1-镜像》

标签

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

归档

  • 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月