-
Nginx 502 Bad Gateway
现象 请求页面得到502 Bad Gateway。 日志 查看error.log日志,发现有upstream sent too big header while
2023-03-13,阅读:154,标签:Nginx
-
Kubernetes Ingress 控制器 Nginx
概念 Ingress相当于一个7层的负载均衡器,是Kubernetes对反向代理的一个抽象,它的工作原理类似于Nginx,可以理解成在** Ingress 里建
2022-03-17,阅读:1030,标签:Kubernetes Nginx
-
Docker 部署 Nginx
搜索镜像 docker search nginx 拉取镜像 版本号可以去官网查看:https://hub.docker.com/_/nginx docker p
-
只有一部分接口跨域问题
现象 已经配置了Nginx,使其拦截OPTIONS请求,解决跨域问题。 大部分接口可以跨域访问了,但有一个接口还是提示跨域请求。 排查 查看Nginx的acce
-
PHP No input file specified 解决办法
场景 Windows、php-cgi、Nginx、ThinkPHP 启动 php-cgi 监听9000端口,指定配置文件 .\php-cgi.exe -b 12
-
Ubuntu 卸载 Nginx
apt-get 方式安装 apt-get remove nginx nginx-common apt-get purge nginx nginx-common
-
Nginx 负债均衡的几种方式
轮询 http { upstream loadbalanceone{ server 127.0.0.1:9000; se
-
Nginx(OpenResty) 去掉默认错误页面中的版本号
说明 修改Nginx的源码才能去除,所以必须通过编译安装,yum或apt-get方式无法修改。 适用于OpenResty。 Nginx和OpenResty的开源
-
Ubuntu 使用 Certbot 给 Nginx 添加 SSL 证书
关于 Certbot Certbot不用注册Let's Encrypt账号(它会自动帮你注册),不用手动修改配置服务器配置,一行命令搞定。 安装示例 以我的服务
2021-05-11,阅读:1814,标签:Nginx Let's Encrypt HTTPS
-
Nginx 负载均衡 WebSocket 请求
说明 Nginx默认方向代理超时时间为60秒,所以如果60秒内,WebSocket没有交互,则断开连接。Nginx的60秒超时可使用proxy_read_tim
-
Nginx upstream timed out 10060
错误信息 upstream timed out (10060: A connection attempt failed because the connect
-
Nginx 使用 Basic Auth 认证做资源访问限制
生成密码 使用OpenSSL生成密码。如下:生成密码为123456的密文。 openssl passwd -crypt 123456 用户名密码文件 文件中用户
-
Nginx 解决前端 CORS 跨域问题
问题描述 Access to XMLHttpRequest at 'http://localhost:8080/test' from origin 'http
-
Nginx 查看已安装模块
-V 只能看到编译时指定的模块。 nginx -V auto/options Nginx安装目录中的auto目录下的options含有编译时指定的模块,可查看。
2020-01-23,阅读:5852,标签:Nginx
-
Nginx 使用 X-Accel-Redirect 实现静态文件下载的统计、鉴权、防盗链、限速等
需求 统计静态文件的下载次数; 判断用户是否有下载权限; 根据用户指定下载速度; 根据Referer判断是否需要防盗链; 根据用户属性限制下载速度; X-A
-
nginx: [emerg] unknown directive "if($request_uri" in
错误 nginx: [emerg] unknown directive "if($request_uri" in 解决 if与($间需要有空格。 例如: if
2019-09-29,阅读:6172,标签:Nginx
-
Keepalived + Nginx 搭建高可用负载均衡服务器
Keepalived 安装 https://www.zhangbj.com/p/351.html 添加监控 Nginx 脚本 Keepalived 配置文件 v
2019-08-07,阅读:3619,标签:Keepalived Nginx 负载均衡
-
Nginx 日志按天生成
说明 无需借助logrotate等日志处理工具。 配置 http { log_format main '$remote_addr - $remote
2019-07-22,阅读:8401,标签:Nginx
-
Nginx 配置静态文件 404(root 与 alias 区别)
说明 location /test/ { root /home/test; } 当url访问/test/1.png时会去/home/test/test/
2019-06-25,阅读:5060,标签:Nginx
-
Nginx 开启 HTTP2.0
前置条件 编译Nginx所用的OpenSSL版本必须在1.0.2e及以上 安装或升级OpenSSL可参考 编译安装Nginx并指定OpenSSL可参考