随笔分类 -  nginx

摘要:add_header X-Content-Type-Options nosniff; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $pro 阅读全文
posted @ 2025-09-28 10:14 铜锣湾扛把子·66 阅读(12) 评论(0) 推荐(0)
摘要:1 参考链接:https://blog.csdn.net/qq_36162696/article/details/129315682 阅读全文
posted @ 2023-06-12 17:32 铜锣湾扛把子·66 阅读(367) 评论(0) 推荐(0)
摘要:1 在安装ng时要加载tcp的配置模块 (stream) 阅读全文
posted @ 2023-03-17 11:56 铜锣湾扛把子·66 阅读(45) 评论(0) 推荐(0)
摘要:1 新建conf并添加如下: server { listen 2222; #listen、server_name这些正常配置 listen [::]:2222; server_name localhost; location ^~ /s/cms/ { proxy_pass http://cms/; 阅读全文
posted @ 2023-01-12 11:24 铜锣湾扛把子·66 阅读(963) 评论(0) 推荐(0)
摘要:1 nginx.conf中添加配置如下: server { listen 5050; location / { proxy_pass http://代理IP:3333; proxy_set_header WL-Proxy-Client-IP $remote_addr; } 阿里云控制台将cdn全栈加 阅读全文
posted @ 2023-01-12 11:19 铜锣湾扛把子·66 阅读(206) 评论(0) 推荐(0)
摘要:1 申请域名 (公有云)2 下载证书 pem key 并上传服务器指定目录3 公有云上做A记录解析 (解析到代理的nginx)4 nginx配置443模块 配置内容: server { listen 80; server_name softwaretest.ysjwproduction.com; r 阅读全文
posted @ 2023-01-09 15:05 铜锣湾扛把子·66 阅读(725) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/kevingrace/p/8269955.html include mime.types; default_type application/octet-stream; proxy_set_header Host $http_host; proxy_s 阅读全文
posted @ 2022-12-16 11:57 铜锣湾扛把子·66 阅读(408) 评论(0) 推荐(0)
摘要:方法一 更新nginx到最新版本 此漏洞可消除 方法二 在nginx.conf中添加 max_ranges 1; 阅读全文
posted @ 2022-08-29 14:42 铜锣湾扛把子·66 阅读(1367) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/hz0356/p/9729528.html 阅读全文
posted @ 2021-11-22 15:45 铜锣湾扛把子·66 阅读(92) 评论(0) 推荐(0)
摘要:1 vim /usr/lib/systemd/system/nginx.service(添加内容如下) [Unit] Description=nginx service After=network.target [Service] Type=forking ExecStart=/usr/local/ 阅读全文
posted @ 2021-07-14 17:40 铜锣湾扛把子·66 阅读(138) 评论(0) 推荐(0)