雨夜

博客即是笔记,常记常看

导航

随笔分类 -  Nginx

摘要:配置HTTPS测试环境 方案1:使用自签名证书 1.1 快速生成自签名证书 # 创建SSL目录 sudo mkdir -p /etc/nginx/ssl cd /etc/nginx/ssl # 生成自签名证书 sudo openssl req -x509 -newkey rsa:2048 -keyo 阅读全文

posted @ 2025-11-04 08:43 二月无雨

摘要:# [Nginx]: 403 forbidden 的原因以及解决方法 #### 403状态码含义 > The HTTP **`403 Forbidden`** response status code indicates that the server understands the request 阅读全文

posted @ 2023-08-30 18:08 二月无雨

摘要:Nginx 平滑升级 nginx/1.20.1 >1.22.1 1、查看原编译参数 nginx -V nginx version: nginx/1.20.1 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) built with OpenSSL 阅读全文

posted @ 2023-06-02 09:40 二月无雨

摘要:### 1、正则表达式 - 元字符 | 字符 | 描述 | | : | : | | \ | 将下一个字符标记为一个特殊字符、或一个原义字符、或一个 向后引用、或一个八进制转义符。例如,'n' 匹配字符 "n"。'\n' 匹配一个换行符。序列 '\\' 匹配 "\" 而 "\(" 则匹配 "("。 | 阅读全文

posted @ 2021-11-15 19:20 二月无雨

摘要:1、nginx.conf配置,以及节点解释 Nginx配置段 # 全局区 # 有1个工作的子进程,可以自行修改,但太大无益,因为要争夺CPU,一般设置为 CPU数*核数 worker_processes 1; #错误日志存放目录 error_log /usr/local/nginx/logs/err 阅读全文

posted @ 2018-12-31 22:25 二月无雨

摘要:1、nginx定义 nginx是一个高性能的HTTP和反向代理服务器,也是一个IMAP/POP3/SMTP代理服务器。官方文档:http://nginx.org/en/docs/,https://www.nginx.com/resources/wiki/ 2、nginx安装 环境:centos6.5 阅读全文

posted @ 2018-12-31 21:35 二月无雨

摘要:问题:413 Request Entity Too Large(nginx/1.2.1) 回答:其实从,错误上已经知道是,nginx限制,只要调整nginx参数就能解决问题。 location / { client_max_body_size 50m; proxy_pass http://xxx.c 阅读全文

posted @ 2018-12-12 16:58 二月无雨

摘要:1. 查找Nginx路径 ``` bash # 查找Nginx路径,如:nginx: /usr/local/nginx whereis nginx ``` 2. Nginx -s 命令 ```bash nginx -s reload # 修改配置文件后,重新载入配置文件 kill -HUP ngin 阅读全文

posted @ 2018-12-08 17:13 二月无雨