51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

最新发布

nginx 安全配置参数
新视野

nginx 安全配置参数

厉飞雨 阅读(123) 评论(0) 赞(11)

http 模块添加 即可解决 1,2,3,4 问题: add_header X-Frame-Options "SAMEORIGIN"; add_header X-XSS-Protection "1; mode=block"; add_header X-Content-Type-Options "no...

nginx try_files指令详解
云服务器

nginx try_files指令详解

厉飞雨 阅读(138) 评论(0) 赞(10)

举例说明 示例一: location / { root data; index index.html index.htm; try_files $uri $uri/ /index.html; } 解释配置: root:设置静态根目录为 data index:设置目录的默认文件为 index.h...

nginx 403 总结
开源软件

nginx 403 总结

厉飞雨 阅读(2436) 评论(0) 赞(19)

<p>nginx 403 错误表示服务器拒绝了客户端的请求,<strong>表明客户端无权访问所请求的资源</strong>。</p> <p>导致此错误的原因有多种,以下列出了一些常见原因和解决方法:</p> <ol> <li>文件权限问题</li> </ol>...

nginx 安装(docker版)
日常运维

nginx 安装(docker版)

厉飞雨 阅读(175) 评论(0) 赞(8)

<p><a href="https://www.zhihu.com/question/497914242/answer/2984936068">(3 封私信 / 7 条消息) 如何使用docker部署nginx? - 知乎 (zhihu.com)</a></p> <p>1-先通过创建一个临时容器 n...

nginx proxy_pass 502 559 selinux
网络安全

nginx proxy_pass 502 559 selinux

厉飞雨 阅读(154) 评论(0) 赞(8)

<p>测试环境上, 配置文件 nginx 一模一样, 在生产上就出502 。</p> <p>我今天在一台新的liunx上运行nginx来进行反向代理时候,发现怎么测都是502</p> <p><img src="http://static.51tbox.com/static/2024-08-29/col/...

logstash 解析nginx日志
云服务器

logstash 解析nginx日志

厉飞雨 阅读(189) 评论(0) 赞(13)

<p>logstash 启动慢,有的需要等1分钟左右。 filebeats 就很快</p> <p>记录读取文件:</p> <pre><code>/usr/share/logstash/data/plugins/inputs/file </code></pre> <h2>1...

nginx $request_time
经验分享

nginx $request_time

厉飞雨 阅读(195) 评论(0) 赞(10)

nginx $request_time [Nginx - request_time和upstream_response_time详解-CSDN博客](https://blog.csdn.net/zzhongcy/article/details/105819628) request_time 指的就是**从接受用户请求的第一个字节到发送完响应数据的时间**,即$request...