certbot自动更新https证书
certbot自动更新https证书 前置条件:1系统centos7,2已有nginx服务运行 安装 yum install certbot 两种方式 1.使用dns认证 2.使用访问文件认证 命令行…
nginx反向代理配置缓存
nginx反向代理配置缓存,提升速度、减少原站网络请求节约带宽 第一步 在nginx.conf的 http{}内添加 proxy_cache_path /home/cache levels=1:2 k…
nginx相关随记(无参考意义)
nginx流程判断 一、if语句中的判断条件(nginx) 1、正则表达式匹配: ==:等值比较; 与指定正则表达式模式匹配时返回“真”, 区分字符大小写; 与指定正则表达式模式匹配时返回“真”, 不…
常见httpcode说明
值 中文描述 英文名称 100 继续 Continue 101 交换协议 Switching Protocols 102 处理中 Processing 103 早期提示 Early Hints …
nginx监控测试调优
启用nginx 监控模块 ,实时查看nginx状态 安装(编译) ./configure --prefix=/usr/local/nginx_stat --with-http_stub_status_…
OpenSSL手动生成证书
pem的证书就是crt证书和ca证书内容整到一起就行了,还需要注意顺序不能颠倒了。 生成RSA密钥 openssl genrsa -des3 -out nginx.key 1024 #实际使用中看服务…
nginx使用ssl加密
仅用于编译安装的,yum等方式安装的默认支持ssl 自己入门时折腾玩的,无太大实用意义 安装编译 ./configure --prefix=/usr/local/nginx --with-http_s…
nginx日志
日志默认位置 /usr/local/nginx/logs 配置文件的log_format配置变量(常用的) $request 请求的URI和HTTP协议 $http_host 请求地址,即浏览器中你输…
nginx内置变量说明
官方文档-变量 http://nginx.org/en/docs/varindex.html 变量名称 $arg_PARAMETER $args $binary_remote_addr $body_b…
nginx常用操作
nginx支持信号 信号 命令参数 功能 TERM活INT stop 快速关闭 QUIT quit 安全关闭 HUP reload 热加载配置 WINCH 安全关闭工作进程 USR1 reopen 重…
nginx常用配置示例
常用基本配置 基本http server { listen 80; listen [::]:80; server_name localhost; root html; index index.html…
Centos7使用Certbot签发证书
安装 yum install snapd systemctl enable --now snapd.socket ln -s /var/lib/snapd/snap /snap snap instal…
centos7 编译安装nginx脚本
#!/bin/sh #centos7 自动编译安装nginx#安装条件 :centos7系统 安装nginx v1.19.4#个人安装使用 yum install -y tar wget make c…
centos安装最新nginx
关闭selinux 做转发时 有可能nginx报权限错误,需关闭selinux setenforce 0 sed -i 's/SELINUX=enforcing/SELINUX=disabled/' …