随笔分类 - nginx
摘要:1 参考链接:https://blog.csdn.net/qq_36162696/article/details/129315682
阅读全文
摘要:1 在安装ng时要加载tcp的配置模块 (stream)
阅读全文
摘要:1 新建conf并添加如下: server { listen 2222; #listen、server_name这些正常配置 listen [::]:2222; server_name localhost; location ^~ /s/cms/ { proxy_pass http://cms/;
阅读全文
摘要:1 nginx.conf中添加配置如下: server { listen 5050; location / { proxy_pass http://代理IP:3333; proxy_set_header WL-Proxy-Client-IP $remote_addr; } 阿里云控制台将cdn全栈加
阅读全文
摘要:1 申请域名 (公有云)2 下载证书 pem key 并上传服务器指定目录3 公有云上做A记录解析 (解析到代理的nginx)4 nginx配置443模块 配置内容: server { listen 80; server_name softwaretest.ysjwproduction.com; r
阅读全文
摘要:https://www.cnblogs.com/kevingrace/p/8269955.html include mime.types; default_type application/octet-stream; proxy_set_header Host $http_host; proxy_s
阅读全文
摘要:方法一 更新nginx到最新版本 此漏洞可消除 方法二 在nginx.conf中添加 max_ranges 1;
阅读全文
摘要:https://www.cnblogs.com/hz0356/p/9729528.html
阅读全文
摘要:1 vim /usr/lib/systemd/system/nginx.service(添加内容如下) [Unit] Description=nginx service After=network.target [Service] Type=forking ExecStart=/usr/local/
阅读全文