会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
破碎的屋檐
博客园
首页
新随笔
联系
订阅
管理
2021年8月20日
Nginx访问控制
摘要: Nginx访问控制 一、黑(白)名单 [root@web-nginx conf.d]# vim access-control.conf server { listen 80; server_name www.access-control.com; access_log /var/log/nginx/
阅读全文
posted @ 2021-08-20 11:37 破碎的屋檐
阅读(48)
评论(0)
推荐(0)
2021年8月19日
Nginx Rewrite和常用指令
摘要: Rewrite和常用指令 rewrite 常用正则表达式说明 小括号()之间匹配的内容,可以在后面通过$1来引用,$2表示的是前面第二个()里的内容。正则里 面容易让人困惑的是\转义特殊字符。 一、rewrite实例 rewrite语法 last 本条规则匹配完成后,继续向下匹配新的location
阅读全文
posted @ 2021-08-19 13:59 破碎的屋檐
阅读(762)
评论(0)
推荐(0)
2021年8月18日
Nginx set指令
摘要: | ## Rewrite和常用指令 | | | | rewrite 常用正则表达式说明 小括号()之间匹配的内容,可以在后面通过$1来引用,$2表示的是前面第二个()里的内容。正则里 面容易让人困惑的是\转义特殊字符。 | | | | ## 一、rewrite实例 | | | | ### rewri
阅读全文
posted @ 2021-08-18 23:26 破碎的屋檐
阅读(2762)
评论(0)
推荐(0)
nginx模块添加
摘要: nginx模块添加 下载需要添加的模块 git clone https://github.com/cuber/ngx_http_google_filter_module [root@web-nginx ~]# nginx -V nginx version: nginx/1.20.1 built by
阅读全文
posted @ 2021-08-18 09:53 破碎的屋檐
阅读(65)
评论(0)
推荐(0)
php编译安装及配置nginx解析php
摘要: php编译安装 1.依赖包 #编译环境依赖包 [root@localhost ~]# yum -y install gcc gcc-c++ glibc automake autoconf libtool make [root@localhost ~]# mkdir -p /usr/local/php
阅读全文
posted @ 2021-08-18 09:36 破碎的屋檐
阅读(137)
评论(0)
推荐(0)
2021年8月17日
Nginx动静分离
摘要: Nginx动静分离 环境 代理 192.168.133.161 静态 192.168.133.160 动态 192.168.133.162 客户端 [root@proxy-nginx conf.d]# cat /etc/hosts 192.168.133.161 www.up-proxy.com 代
阅读全文
posted @ 2021-08-17 18:14 破碎的屋檐
阅读(35)
评论(0)
推荐(0)
Nginx负载均衡
摘要: 一、nginx负载均衡 配置方法 upstream server { server 192.168.133.161:80; server 192.168.133.160:80; } #假设代理服务器IP为192.168.133.162 server { listen 80; server_name
阅读全文
posted @ 2021-08-17 17:16 破碎的屋檐
阅读(176)
评论(0)
推荐(0)
Nginx反向代理
摘要: Nginx反向代理 环境 代理服务器 192.168.133.161 web服务 192.168.133.160 代理端: # vim /etc/nginx/nginx.conf worker_processes 1; error_log logs/error.log; worker_rlimit_
阅读全文
posted @ 2021-08-17 15:37 破碎的屋檐
阅读(97)
评论(0)
推荐(0)
2021年8月16日
Nginx安装及配置
摘要: nginx编译安装及配置 nginx下载官网:nginx: download 关闭防火墙和selinux [root@localhost ~]# wget -P /usr/local/src/ http://nginx.org/download/nginx-1.20.1.tar.gz [root@l
阅读全文
posted @ 2021-08-16 11:39 破碎的屋檐
阅读(85)
评论(0)
推荐(0)
2021年8月15日
nginx主(子)配置文件参考
摘要: 主配置文件/etc/nginx/nginx.conf user nginx; worker_processes 1; error_log /var/log/nginx/nginx_error.log; pid /usr/local/nginx/run/nginx.pid; events { work
阅读全文
posted @ 2021-08-15 23:53 破碎的屋檐
阅读(373)
评论(0)
推荐(0)
下一页
公告