随笔分类 -  nginx

摘要:ip方式 访问 nginx 服务器的80端口,在80端口下多个域名的情况下,那个服务响应 翻译 搜索 复制 阅读全文
posted @ 2023-06-08 08:18 papering 阅读(34) 评论(0) 推荐(0)
摘要:记一次nginx配置不当引发的499与failover 机制失效 - 及时 - 博客园 https://www.cnblogs.com/AcAc-t/p/nginx_499_and_504_for_uwsgi.html 背景 nginx 499在服务端推送流量高峰期长期以来都是存在的,间或还能达到告 阅读全文
posted @ 2023-05-02 19:06 papering 阅读(2092) 评论(0) 推荐(0)
摘要:实践: 1、 http { include mime.types; #include luawaf.conf; include proxy.conf; default_type application/octet-stream; server_names_hash_bucket_size 512; 阅读全文
posted @ 2023-04-02 20:03 papering 阅读(169) 评论(0) 推荐(0)
摘要:nginx 中输出 markdown .md 类型的文件内容 - Star-Hitian - 博客园 https://www.cnblogs.com/Star-Haitian/articles/8242784.html nginx 中输出 markdown .md 类型的文件内容 本来使用了 mdw 阅读全文
posted @ 2022-03-14 22:20 papering 阅读(1526) 评论(0) 推荐(0)
摘要:charset utf-8; 阅读全文
posted @ 2022-03-07 17:50 papering 阅读(159) 评论(0) 推荐(0)
摘要:NGINX 之父 Igor Sysoev 从 F5 离职 - OSCHINA - 中文开源技术交流社区 https://www.oschina.net/news/179313/igor-quit-from-f5 设计了一个新的sendfile(2)系统调用实现,该实现被整合到 FreeBSD 操作系 阅读全文
posted @ 2022-01-22 09:23 papering 阅读(56) 评论(0) 推荐(0)
摘要:Nginx 最全操作总结 https://mp.weixin.qq.com/s/LmtHTOVOvdcnMBuxv7a9_A server { listen 80; server_name *.test; # 图片防盗链 location ~* \.(gif|jpg|jpeg|png|bmp|swf 阅读全文
posted @ 2021-07-01 13:46 papering 阅读(74) 评论(0) 推荐(0)
摘要:小结: 浏览器地址栏: test.com 整站 url 变为 www.test.com server{ listen 80; listen 443 ssl http2; server_name test.com; #SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则 #err 阅读全文
posted @ 2021-06-30 11:37 papering 阅读(249) 评论(0) 推荐(0)
摘要:路由正则 实践 React 单页应用 虚拟路由 location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. # try_files $u 阅读全文
posted @ 2021-06-17 20:36 papering 阅读(166) 评论(0) 推荐(0)
摘要:Module ngx_http_map_module http://nginx.org/en/docs/http/ngx_http_map_module.html 阅读全文
posted @ 2021-06-17 14:56 papering 阅读(57) 评论(0) 推荐(0)
摘要:Nginx 架构浅析 原创 handsomeli 腾讯技术工程 2021-04-12 https://mp.weixin.qq.com/s/gd59U50tlJPa4B4avXRG1Q 阅读全文
posted @ 2021-04-18 17:06 papering 阅读(60) 评论(0) 推荐(0)
摘要:Module ngx_http_proxy_module http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_http_version Syntax: proxy_http_version 1.0 | 1.1; Default 阅读全文
posted @ 2020-07-24 10:30 papering 阅读(2488) 评论(0) 推荐(0)
摘要:解决的问题:将请求分发至同一主机的不同端口(不考虑容器)支持:httpsupstream api { server 127.0.0.1:5000 weight=1; server 127.0.0.1:5001 weight=1; server 127.0.0.1:5002 weight=1;}ser 阅读全文
posted @ 2020-06-30 12:09 papering 阅读(325) 评论(0) 推荐(0)
摘要:NGINX Docs | HTTP Load Balancing https://docs.nginx.com/nginx/admin-guide/load-balancer/http-load-balancer/ cookie实现客户端与后端服务器的会话保持, 在一定条件下可以保证同一个客户端访问 阅读全文
posted @ 2020-06-30 12:08 papering 阅读(418) 评论(0) 推荐(0)
摘要:https://nginx.org/en/docs/http/request_processing.html 阅读全文
posted @ 2020-06-12 01:06 papering 阅读(133) 评论(0) 推荐(0)
摘要:从源码解析Nginx对 Native aio支持_运维_youbingchen的博客-CSDN博客 https://blog.csdn.net/youbingchen/article/details/51767587 阅读全文
posted @ 2020-05-09 01:14 papering 阅读(171) 评论(0) 推荐(0)
摘要:nginx 并发数问题思考:worker_connections,worker_processes与 max clients-运维者说:从菜鸟到老鸟-51CTO博客 https://blog.51cto.com/liuqunying/1420556 nginx 并发数问题思考:worker_conn 阅读全文
posted @ 2020-05-06 00:02 papering 阅读(561) 评论(0) 推荐(0)
摘要:线上nginx的一次“no live upstreams while connecting to upstream ”分析 线上nginx的一次“no live upstreams while connecting to upstream ”分析-飞翔的单车-51CTO博客 https://blog 阅读全文
posted @ 2020-04-30 00:33 papering 阅读(4282) 评论(0) 推荐(0)
摘要:实践: 1、 proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-PORT $remote_port; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for 阅读全文
posted @ 2020-04-26 18:45 papering 阅读(248) 评论(0) 推荐(0)
摘要:agentzh 的 Nginx 教程(版本 2019.07.31) agentzh 的 Nginx 教程(版本 2019.07.31) https://openresty.org/download/agentzh-nginx-tutorials-zhcn.html#01-NginxVariables 阅读全文
posted @ 2019-09-21 20:06 papering 阅读(281) 评论(0) 推荐(0)