![](https://www.wahahahaohe.com/wp-content/themes/dux/img/lm/lm12.png)
1、使用nginx内置变量 1.1、获取自定义请求头 nginx配置 server { listen 80; server_name testa.cc www.testa.cc; location ~* /http/ { ...
1、使用nginx内置变量 1.1、获取自定义请求头 nginx配置 server { listen 80; server_name testa.cc www.testa.cc; location ~* /http/ { ...
系统:rocky linux9.4 openresty:1.25.3.1 源码包安装的好处就是可以根据实际需要用到的模块,本次把常用的大部分模块都加进来了,肯定包括lua和geo openresty下载地址可以去官网下:https://op...
server { listen 80; server_name your_domain.com; location / { proxy_pass http://gateway; # 将源...
nginx通过不同客户端类型匹配不同首页 server { listen 80; server_name www.google.com; if ($http_user_agent ~* “A...
nginx日志输出部分省略了,只写主要的部分 1、filebeat配置 [root@centos filebeat]# cat filebeat.yml filebeat.inputs:- type: log enabled: true p...
[root@nginx ~]# snap install coreerror: system does not fully support snapd: cannot mount squashfs image using "squashfs...
官网有文档说明怎么使用,但是没有中文,官网地址 https://certbot.eff.org/ 这里就把官网的翻译一下吧,顺便把遇到的坑也说一下 系统:centos7.6,nginx1.21 1、安装snapd [root@centos ...
goaccess分析nginx日志 1.nginx日志配置 常规的nginx日志解析网上有很多相关的文章,但是json_analytics格式的却很少,就以这个为例,nginx日志配置: log_format json_analytics ...
我们在测试环境中可能会遇到需要用https来做测试的时候,下面介绍一下怎么给测试环境中的私有域名颁发证书,能让测试环境也用上https 当前使用的测试环境:centos 7 + nginx,域名是随意写的: wp.aa 1、要用到的工具: ...
所需要软件包: nginx下载地址: https://github.com/nginx/nginx libmaxminddb下载地址:(可以不下载,geoip模块中已经包含了) https://github.com/maxmind/libm...