51工具盒子

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

云服务器

nginx 1.24 编译安装(普通版本)

nginx 1.24 编译安装(普通版本)

厉飞雨 阅读(485) 评论(0) 赞(18)

<p>centos 7.8 和 7.9 没有要求安装其他依赖 2024.06.22</p> <p>#进入到 /usr/local/src/目录下执行以下命令</p> <h1>例如,下载Nginx 1.24.0版本</h1> <pre><code>wget https://nginx....

【转】LNMP下Nginx如何设置域名301重定向

【转】LNMP下Nginx如何设置域名301重定向

厉飞雨 阅读(524) 评论(0) 赞(17)

LNMP下的Nginx如果想将域名lnmp.org 301重定向到www.lnmp.org,同时www.lnmp.org已经添加上,可以按如下步骤修改 使用命令编辑器[vi](//www.vpser.net/manage/vi.html)、[nano](http://www.vpser.net/manage/nano.html)或[winscp图形管理软件](http://ww...

nginx 安全配置参数

nginx 安全配置参数

厉飞雨 阅读(294) 评论(0) 赞(20)

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指令详解

厉飞雨 阅读(318) 评论(0) 赞(20)

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

[重写]whmcs nginx rewrite规则

[重写]whmcs nginx rewrite规则

厉飞雨 阅读(465) 评论(0) 赞(20)

<p>之前发的太拉胯了, 重新写了一份.</p> <p><img src="http://static.51tbox.com/static/2024-08-29/col/cb3aec3c8f6bc18df92e5f39fb7bb86d/4b24476e84764cd3add42cb683fc9965.png.jpg"...

nginx 403 总结

nginx 403 总结

厉飞雨 阅读(2721) 评论(0) 赞(28)

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

nginx 安装(docker版)

nginx 安装(docker版)

厉飞雨 阅读(385) 评论(0) 赞(16)

<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

厉飞雨 阅读(321) 评论(0) 赞(15)

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

node dockerfile (nginx)

node dockerfile (nginx)

厉飞雨 阅读(343) 评论(0) 赞(18)

<p>node dockerfile</p> <pre><code>FROM nginx #将dist目录内容复制到nginx容器html内部 COPY dist /usr/share/nginx/html/ EXPOSE 80 </code></pre> <p>springboot doc...