
解决 the “listen … http2” directive is deprecated
- 2024-12-27
- 后端
错误 nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead 解决方法 检查现有配置形式如: server { listen443 ssl http2; 修复:nginx >= 1...

Nginx配置WebSocket【同时支持WSS与WS】
- 2022-09-26
- 后端
SSL、WSS、NGINX关系 wss协议实际是websocket+SSL,就是在websocket协议上加入SSL层,类似https(http+SSL)。利用nginx代理wss【通讯原理及流程】客户端发起wss连接连到nginxnginx将wss协议的数据转换成ws协议...

错误No input file specified解决
- 2020-03-20
- 设计开发
对数据盘进行了转移,然后就一直报这个错。转移前是正常的,转移后才出现的问题所以这个不可能是环境支持的问题,要么权限要么就是转移后的文件中有配置造成的。 访问html正常,访问php全部报:No input file...

Nginx日志检查,Nginx日志安全性分析脚本
- 2019-12-16
- 安全工具
nginx_log_check Nginx日志安全分析脚本,日常运维中Log日志和waf分析是最常见的操作,平时都是用命令筛选log,但今天你可以试试这个小脚本来帮助你简化操作。 功能 统计Top 20 地址SQL注入分析扫描器...

PHP-FPM 远程代码执行漏洞(CVE-2019-11043)
- 2019-10-24
- Vulndb
PHP-FPM 远程代码执行漏洞(CVE-2019-11043) 在长亭科技举办的 Real World CTF 中,国外安全研究员 Andrew Danau 在解决一道 CTF 题目时发现,向目标服务器 URL 发送 %0a 符号时,服务返回异常,疑似存在漏...

浅谈Nginx Lua安全应用示例:后门/监听/挂马等
Nginx + Lua nginx是一个用C语言开发的高性能WEB服务器及反向代理服务器,先将Nginx+Lua组合到一起的是OpenResty(类似的还有淘宝的tengine)。OpenResty通过汇聚各种设计精良的 Nginx 模块,从而将 Nginx 有...
![解决nginx: [error] open() “/usr/local/nginx/logs/nginx.pid” failed (2: No such file or directory)](https://www.uedbox.com/wp-content/themes/UB2019/prcute.php?src=https://www.uedbox.com/wp-content/uploads/2019/09/2019-09-23_13-13-36.png&h=320=&w=380&zc=1)
解决nginx: [error] open() “/usr/local/nginx/logs/nginx.pid” failed (2: No such file or directory)
nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed 重启nginx的时候报错: nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory) 看信...

Nginx access.log文件太大,自动释放清理
Nginx在涉及大流量时,会发生非常庞大的日志文件,包含access.log和error.log,日志会随着连接不断增加,到无限大。如果日志文件太大,会导致Nginx运行缓慢,卡顿,也是存储资源的浪费。 比如体验盒子服务器...

解决 failed (13: Permission denied) while reading upstream
调整了服务器用户组后,发现Nginx报错: 2019/08/14 15:03:14 [error] 18667#0: *13 FastCGI sent in stderr: "PHP message: PHP Warning:Use of undefined constant MUTHEME_NAME - assumed 'MUTHEME_NAME' ...

Nginx配置Basic Auth登录认证,要求用户名密码
Nginx配置Basic Auth登录认证 有时候我们通过nginx搭建了一台文件服务器, 一般来讲是公开的, 但我们又希望该服务器不让他人看到, 有人可能会搭建一个登录系统, 但是太麻烦, 也没太大必要, 比较简单的做法是配...